aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0fb887a..38fab54 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-12 Phil Muldoon <pmuldoon@redhat.com>
+
+ * gdb.python/py-breakpoint.c: Make result global.
+
2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix non-GNU make compatibility.
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.c b/gdb/testsuite/gdb.python/py-breakpoint.c
index b2ad81b..4dbe723 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++)