Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: Fix MI/async testsuite
Date: Sun, 04 May 2008 13:40:00 -0000	[thread overview]
Message-ID: <200805041618.14962.vladimir@codesourcery.com> (raw)

[-- 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"

             reply	other threads:[~2008-05-04 12:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-04 13:40 Vladimir Prus [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200805041618.14962.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox