Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] gdb_unload - account for another termination message
@ 2011-03-15 12:51 Phil Muldoon
  2011-03-15 13:42 ` Pedro Alves
  0 siblings, 1 reply; 5+ messages in thread
From: Phil Muldoon @ 2011-03-15 12:51 UTC (permalink / raw)
  To: gdb-patches


While working on another bug I attempted to use gdb_unload in the
testsuite.  I noticed that it did not account for a termination
message. (This was the one message I was getting).  This would lead to a
timeout and failure.   Is it ok to just add another -re test in the
original test here?

Cheers

Phil

2011-03-15  Phil Muldoon  <pmuldoon@redhat.com>

	* lib/gdb.exp (gdb_unload): Add another termination case.

--

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 1b601af..6cc8410 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -142,6 +142,11 @@ proc gdb_unload {} {
 		verbose "\t\tKilling previous program being debugged"
 	    exp_continue
 	}
+	-re "A program is being debugged already..*Are you sure.*y or n. $"\
+	    { send_gdb "y\n"
+		verbose "\t\tKilling previous program being debugged"
+	    exp_continue
+	}
 	-re "Discard symbol table from .*y or n.*$" {
 	    send_gdb "y\n"
 	    exp_continue


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

end of thread, other threads:[~2011-03-15 16:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15 12:51 [patch] gdb_unload - account for another termination message Phil Muldoon
2011-03-15 13:42 ` Pedro Alves
2011-03-15 14:06   ` Phil Muldoon
2011-03-15 14:25     ` Pedro Alves
2011-03-15 17:38       ` Phil Muldoon

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