aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2010-04-12 09:49:35 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2010-04-12 09:49:35 +0000
commitfc8eb08a3af3413effa69e39deaf6293e25e56d5 (patch)
tree6931128b55d9d78949342089b9b04b986153e6e0 /gdb/testsuite/gdb.python
parent30dc66ba8ee7a544c8d425ac4dd69bb4dab1fe84 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.c2
1 files changed, 1 insertions, 1 deletions
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++)