diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2010-04-12 09:49:35 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2010-04-12 09:49:35 +0000 |
commit | fc8eb08a3af3413effa69e39deaf6293e25e56d5 (patch) | |
tree | 6931128b55d9d78949342089b9b04b986153e6e0 | |
parent | 30dc66ba8ee7a544c8d425ac4dd69bb4dab1fe84 (diff) | |
download | gdb-fc8eb08a3af3413effa69e39deaf6293e25e56d5.zip gdb-fc8eb08a3af3413effa69e39deaf6293e25e56d5.tar.gz gdb-fc8eb08a3af3413effa69e39deaf6293e25e56d5.tar.bz2 |
2010-04-12 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-breakpoint.c: Make result global.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-breakpoint.c | 2 |
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++) |