From: Nick Roberts <nickrob@snap.net.nz>
To: Denis PILAT <denis.pilat@st.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFA] gdb.mi/mi2-var-display.exp: fullname field testing
Date: Mon, 09 Apr 2007 10:10:00 -0000 [thread overview]
Message-ID: <17946.4191.490689.438516@farnswood.snap.net.nz> (raw)
In-Reply-To: <46163D31.7080803@st.com>
> # The running part has been checked already by mi_run_cmd
> gdb_expect {
> - -re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",line=\"$line_dct_end\"\}\r\n$mi_gdb_prompt$" {
> + -re "\[\r\n\]*000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_children_tests\",args=\\\[\\\],file=\".*var-cmd.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_dct_end\"\}\r\n$mi_gdb_prompt$" {
> pass "run to do_children_tests"
I guess this didn't fail before because .* is greedy, and therefore matched up
to the second var-cmd.c in the fullname field. It would be nice to use
non-greedy expressions, normally .*?, but this don't seem to work with
Dejagnu.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2007-04-09 10:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-06 12:29 Denis PILAT
2007-04-09 10:10 ` Nick Roberts [this message]
2007-04-10 12:14 ` Daniel Jacobowitz
2007-04-16 12:06 ` Denis PILAT
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=17946.4191.490689.438516@farnswood.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=denis.pilat@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