Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/RFC] testsuite: gdb_run_cmd tweak
@ 2005-04-18 19:51 Michael Snyder
  2005-04-18 21:42 ` Stan Shebs
  2005-04-18 21:54 ` Daniel Jacobowitz
  0 siblings, 2 replies; 9+ messages in thread
From: Michael Snyder @ 2005-04-18 19:51 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

This just adds a regular expression to prevent gdb_run_cmd
from choking on the msg that gdb emits when it detects that
the file has changed and re-reads the symbols.

I honestly don't remember the circumstances that caused me
to add this -- it's been sitting in my sandbox for a while.
Thought it would be better to offer it up than to throw it
away...


[-- Attachment #2: lib --]
[-- Type: text/plain, Size: 672 bytes --]

2005-04-18  Michael Snyder  <msnyder@redhat.com>

	* lib/gdb.exp (gdb_run_cmd): Keep going past "executable has 
	changed" msg.

Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.61
diff -p -r1.61 gdb.exp
*** lib/gdb.exp	14 Apr 2005 19:06:19 -0000	1.61
--- lib/gdb.exp	18 Apr 2005 19:42:38 -0000
*************** proc gdb_run_cmd {args} {
*** 258,263 ****
--- 258,266 ----
  	    send_gdb "y\n"
  	    exp_continue
  	}
+ 	-re ".* has changed; re-reading symbols\[^\r\n\]*\[\r\n\]*" {
+ 	    exp_continue
+ 	}
  	-re "Starting program: \[^\r\n\]*" {}
      }
  }

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

end of thread, other threads:[~2005-04-19 16:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 19:51 [RFA/RFC] testsuite: gdb_run_cmd tweak Michael Snyder
2005-04-18 21:42 ` Stan Shebs
2005-04-18 21:46   ` Michael Snyder
2005-04-18 22:09     ` Stan Shebs
2005-04-18 23:00       ` Michael Snyder
2005-04-19 15:49         ` Paul Gilliam
2005-04-19 16:36           ` Daniel Jacobowitz
2005-04-18 21:54 ` Daniel Jacobowitz
2005-04-18 22:05   ` Michael Snyder

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