This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Recognize and skip interpreter_p initialization in selftest.exp
- From: Fred Fish <fnf at specifix dot com>
- To: gdb-patches at sourceware dot org
- Cc: fnf at specifix dot com
- Date: Sun, 26 Feb 2006 13:35:28 -0500
- Subject: [PATCH] Recognize and skip interpreter_p initialization in selftest.exp
- Reply-to: fnf at specifix dot com
With the latest development gcc and latest development gdb,
selftest.exp fails because the breakpoint at captured_main gets set at
the interpreter_p initialization, which isn't currently one of the
recognized patterns. Apparently optimization has gotten better and
this code has been moved up the instruction stream:
(gdb) br captured_main
Breakpoint 1 at 0x807c714: file /src/latest/trunk/src/gdb/gdb/main.c, line 241.
(gdb) run
Starting program: /links/build/latest/trunk/i686-pc-linux-gnu/gdb/gdb/gdb
Breakpoint 1, captured_main (data=0xbfdbb3f4) at /src/latest/trunk/src/gdb/gdb/main.c:241
241 interpreter_p = xstrdup (context->interpreter_p);
-Fred
2006-02-26 Fred Fish <fnf@specifix.com>
* gdb.gdb/selftest.exp (do_steps_and_nexts): Recognize
and skip over interpreter_p initialization.
Index: testsuite/gdb.gdb/selftest.exp
===================================================================
RCS file: /cvsroots/latest/src/gdb/gdb/testsuite/gdb.gdb/selftest.exp,v
retrieving revision 1.1.1.2
diff -c -p -r1.1.1.2 selftest.exp
*** testsuite/gdb.gdb/selftest.exp 30 Dec 2005 18:53:28 -0000 1.1.1.2
--- testsuite/gdb.gdb/selftest.exp 26 Feb 2006 18:27:34 -0000
*************** proc do_steps_and_nexts {} {
*** 184,189 ****
--- 184,193 ----
set description "next over getcwd"
set command "next"
}
+ -re ".*interpreter_p = xstrdup.*$gdb_prompt $" {
+ set description "next over interpreter_p initialization"
+ set command "next"
+ }
-re "\[ \t\]+\{\r\n$gdb_prompt $" {
setup_xfail "mips-*-irix5*"
fail "$description ended up at odd location"