From fc8eb08a3af3413effa69e39deaf6293e25e56d5 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Mon, 12 Apr 2010 09:49:35 +0000 Subject: [PATCH] 2010-04-12 Phil Muldoon * gdb.python/py-breakpoint.c: Make result global. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/py-breakpoint.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0fb887a9f7f..38fab54ad8b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-04-12 Phil Muldoon + + * gdb.python/py-breakpoint.c: Make result global. + 2010-04-09 Jan Kratochvil Fix non-GNU make compatibility. diff --git a/gdb/testsuite/gdb.python/py-breakpoint.c b/gdb/testsuite/gdb.python/py-breakpoint.c index b2ad81bcb9d..4dbe7237325 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.c +++ b/gdb/testsuite/gdb.python/py-breakpoint.c @@ -17,6 +17,7 @@ */ +int result = 0; int multiply (int i) { @@ -33,7 +34,6 @@ int main (int argc, char *argv[]) { int foo = 5; int bar = 42; - int result = 0; int i; for (i = 0; i < 10; i++) -- 2.30.2