This is the mail archive of the gdb-patches@sources.redhat.com 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]

[RFA/RFC] testsuite: gdb_run_cmd tweak


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...

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\]*" {}
      }
  }

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