This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Fix committed for mi-syn-frames fails (was: Re: PATCH RFA: Fix MI stack frame output for synthetic frames)
I've commited this. mi-syn-frames.exp passes with gcc 3.2 and
gcc 2.96 with stabs and DWARF 2.
2003-02-05 Jason Molenda (jason-cl@molenda.com)
* gdb.mi/mi-syn-frames.c (subroutine): Add an extra statement
at the beginning so the breakpoint doesn't get set on the loop.
Index: gdb.mi/mi-syn-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-syn-frame.c,v
retrieving revision 1.1
diff -u -p -r1.1 mi-syn-frame.c
--- gdb.mi/mi-syn-frame.c 2 Feb 2003 05:51:09 -0000 1.1
+++ gdb.mi/mi-syn-frame.c 6 Feb 2003 06:26:01 -0000
@@ -46,8 +46,9 @@ handler (int sig)
void
subroutine (int in)
{
- while (in < 100)
- in++;
+ int count = in;
+ while (count < 100)
+ count++;
}
void