From: Daniel Jacobowitz <drow@false.org>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix segfault on empty else
Date: Thu, 06 Jul 2006 16:23:00 -0000 [thread overview]
Message-ID: <20060706162349.GA24631@nevyn.them.org> (raw)
In-Reply-To: <44AD37E6.5050705@st.com>
On Thu, Jul 06, 2006 at 05:18:46PM +0100, Andrew STUBBS wrote:
> # with true condition
> if {[gdb_test_multiple "if 1\nend\necho got here\\n" "if 1 with empty body" {
> -re ".*got here.*$gdb_prompt $" {pass "if 1 with empty body"}
> }] != 0} {
> gdb_exit
> gdb_start
> }
Does this work better?
set message "if 1 with empty body"
gdb_test_multiple "if 1\nend\necho got here\n" $message {
-re "got here.*$gdb_prompt $" {
pass $message
}
eof {
fail $message
gdb_exit
gdb_start
}
}
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-07-06 16:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-20 14:34 Andrew STUBBS
2006-06-20 20:17 ` Daniel Jacobowitz
2006-06-21 10:50 ` Andrew STUBBS
2006-07-06 13:30 ` Daniel Jacobowitz
2006-07-06 16:19 ` Andrew STUBBS
2006-07-06 16:23 ` Daniel Jacobowitz [this message]
2006-07-07 11:08 ` Andrew STUBBS
2006-07-07 12:39 ` Daniel Jacobowitz
2006-07-07 13:36 ` Andrew STUBBS
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=20060706162349.GA24631@nevyn.them.org \
--to=drow@false.org \
--cc=andrew.stubbs@st.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