This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python][obv] Make result in testsuite/gdb.python/py-breakpoints.c global


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++)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]