Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Recognize and skip interpreter_p initialization in selftest.exp
@ 2006-02-26 18:40 Fred Fish
  2006-02-26 18:49 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Fred Fish @ 2006-02-26 18:40 UTC (permalink / raw)
  To: gdb-patches; +Cc: fnf

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"


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-26 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-26 18:40 [PATCH] Recognize and skip interpreter_p initialization in selftest.exp Fred Fish
2006-02-26 18:49 ` Daniel Jacobowitz
2006-02-26 19:38   ` Fred Fish
2006-02-26 20:23     ` Mark Kettenis
2006-02-26 22:44       ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox