Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Fix MI/async testsuite
@ 2008-05-04 13:40 Vladimir Prus
  2008-05-04 17:14 ` Daniel Jacobowitz
  0 siblings, 1 reply; 9+ messages in thread
From: Vladimir Prus @ 2008-05-04 13:40 UTC (permalink / raw)
  To: gdb-patches

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


My previous patches to add =thread-created have broken MI testsuite
in async mode, since in async mode, the order of output is somewhat
different and the output for -exec-run is:

  ^running
  =thread-created
  (gdb)

with =thread-creating going before prompt, while in sync mode 
(gdb) follows ^running immediately.

Fixed thusly.

- Volodya


[-- Attachment #2: commit.diff --]
[-- Type: text/x-diff, Size: 1119 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/ChangeLog,v
retrieving revision 1.1630
diff -u -p -r1.1630 ChangeLog
--- ChangeLog	4 May 2008 04:04:10 -0000	1.1630
+++ ChangeLog	4 May 2008 12:13:45 -0000
@@ -1,3 +1,8 @@
+2008-05-04  Vladimir Prus  <vladimir@codesourcery.com>
+
+	* lib/mi-support.exp (mi_run_cmd): Allow for =thread-created
+	notification to appear.
+	
 2008-05-04  Daniel Jacobowitz  <dan@debian.org>
 
 	* gdb.base/fullname.c: New file.
Index: lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.59
diff -u -p -r1.59 mi-support.exp
--- lib/mi-support.exp	30 Apr 2008 18:25:53 -0000	1.59
+++ lib/mi-support.exp	4 May 2008 12:13:45 -0000
@@ -821,7 +821,7 @@ proc mi_run_cmd {args} {
 
     send_gdb "220-exec-run $args\n"
     gdb_expect {
-	-re "220\\^running\r\n${mi_gdb_prompt}" {
+	-re "220\\^running\r\n(=thread-created,id=\"1\"\r\n)?${mi_gdb_prompt}" {
 	}
 	timeout {
 	    perror "Unable to start target"

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

end of thread, other threads:[~2008-06-05 16:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-04 13:40 Fix MI/async testsuite Vladimir Prus
2008-05-04 17:14 ` Daniel Jacobowitz
2008-05-04 17:22   ` Vladimir Prus
2008-05-04 17:29     ` Daniel Jacobowitz
2008-05-04 17:37       ` Daniel Jacobowitz
2008-05-04 19:02         ` Vladimir Prus
2008-05-04 20:05           ` Daniel Jacobowitz
2008-05-05  9:15             ` Vladimir Prus
2008-06-05 16:38               ` Daniel Jacobowitz

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