Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: gdb-patches@sourceware.org
Subject: [patch] Fix recent gdb.mi testsuite "unknown output after running"
Date: Wed, 20 May 2009 18:32:00 -0000	[thread overview]
Message-ID: <20090520183209.GA12914@host0.dyn.jankratochvil.net> (raw)

Hi,

recently getting on Fedora 11 (=Rawhide) x86_64:

FAIL: gdb.mi/mi-nsintrall.exp: mi runto main (unknown output after running)
ERROR: mi-nsintrall.exp tests suppressed
FAIL: gdb.mi/mi-async.exp: start: stop (unknown output after running)
FAIL: gdb.mi/mi-async.exp: restart: stop (unknown output after running)
FAIL: gdb.mi/mi-nsmoribund.exp: mi runto main (unknown output after running)
ERROR: mi-nsmoribund.exp tests suppressed
FAIL: gdb.mi/mi-nonstop.exp: mi runto main (unknown output after running)
ERROR: mi-nonstop.exp tests suppressed
FAIL: gdb.mi/mi-nonstop-exit.exp: mi runto main (unknown output after running)
ERROR: mi-nonstop-exit.exp tests suppressed

but it is more a bug in the testsuite as GDB output looks valid (below).

Attaching a quick fix, just I understand an MI grammar compliant parser would
be better for the testsuite.


Regards,
Jan



^running^M
*running,thread-id="all"^M
(gdb) ^M
mi_expect_stop: expecting: \*stopped,reason="breakpoint-hit",disp="del",bkptno="[0-9]+",frame={addr="0x[0-9A-Fa-f]+",func="main",args=\[\],file="[^
]*.*basics.c",fullname="(/[^\n]*/|\\\\[^\\]+\\[^\n]+\\|\\[^\\][^\n]*\\|[a-zA-Z]:[^\n]*\\).*basics.c",line="66"},thread-id="[0-9]+",stopped-threads=[^
]*^M
(=thread-selected,id="[0-9+]"^M
)?
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0"^M
(gdb) ^M
got =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0"^M
(gdb) ^M

FAIL: gdb.mi/mi-async.exp: start: stop (unknown output after running)
next^M
=library-loaded,id="/lib64/libm.so.6",target-name="/lib64/libm.so.6",host-name="/lib64/libm.so.6",symbols-loaded="0"^M
=library-loaded,id="/lib64/libc.so.6",target-name="/lib64/libc.so.6",host-name="/lib64/libc.so.6",symbols-loaded="0"^M
*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x00000000004005a4",func="main",args=[],file="../.././gdb/testsuite/gdb.mi/basics.c",fullname="/home/jkratoch/redhat/gdb-cvs-clean/gdb/testsuite/gdb.mi/basics.c",line="66"},thread-id="1",stopped-threads="all"^M
&"next\n"^M
^running^M


gdb/testsuite/
2009-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* lib/mi-support.exp (mi_expect_stop): Fix parsing unexpected prompt in
	async mode.

--- gdb/testsuite/lib/mi-support.exp	2 Apr 2009 15:43:10 -0000	1.83
+++ gdb/testsuite/lib/mi-support.exp	20 May 2009 18:26:44 -0000
@@ -1044,6 +1044,11 @@ proc mi_expect_stop { reason func args f
 	    return -1
 	}
 	-re ".*\r\n$mi_gdb_prompt$" {
+	    if {$async} {
+		    # There can appear arbitrary prompts in the async mode, the
+		    # expected response will come later.
+		    exp_continue
+	    }
             verbose -log "got $expect_out(buffer)"
 	    fail "$test (unknown output after running)"
 	    return -1


             reply	other threads:[~2009-05-20 18:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20 18:32 Jan Kratochvil [this message]
2009-05-21  2:16 ` Pedro Alves
2009-05-21 13:46   ` Pedro Alves
2009-05-21 15:54     ` [commit] New target_wait `options' argument, and new TARGET_WNOHANG option. (was: Re: [patch] Fix recent gdb.mi testsuite "unknown output after running") Pedro Alves

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=20090520183209.GA12914@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.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