[python][obv] Make result in testsuite/gdb.python/py-breakpoints.c global
Phil Muldoon
pmuldoon@redhat.com
Mon Apr 12 10:14:00 GMT 2010
On 04/12/2010 10:58 AM, Phil Muldoon wrote:
>
> 2010-04-12 Phil Muldoon <pmuldoon@redhat.com>
>
> * gdb.python/py-breakpoint.c: Make result global.
>
This time with a proper patch attached!
--
Index: testsuite/gdb.python/py-breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-breakpoint.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- testsuite/gdb.python/py-breakpoint.c 9 Apr 2010 09:41:43 -0000 1.1
+++ testsuite/gdb.python/py-breakpoint.c 12 Apr 2010 09:49:35 -0000 1.2
@@ -17,6 +17,7 @@
*/
+int result = 0;
int multiply (int i)
{
@@ -33,7 +34,6 @@
{
int foo = 5;
int bar = 42;
- int result = 0;
int i;
for (i = 0; i < 10; i++)
More information about the Gdb-patches
mailing list