This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python][obv] Make result in testsuite/gdb.python/py-breakpoints.c global
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Mon, 12 Apr 2010 11:14:10 +0100
- Subject: Re: [python][obv] Make result in testsuite/gdb.python/py-breakpoints.c global
- References: <4BC2EEBE.8090404@redhat.com>
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++)