From: Daniel Jacobowitz <drow@false.org>
To: Manoj Iyer <manjo@austin.ibm.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] new GDB server testcase
Date: Thu, 05 May 2005 16:27:00 -0000 [thread overview]
Message-ID: <20050505162707.GB14746@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0505051116020.30511@lazy>
On Thu, May 05, 2005 at 11:19:17AM -0500, Manoj Iyer wrote:
>
> When I have an output in a test as this:
>
> (gdb)
> step
> function4 () at gdb.server/server.c:24
> 24 int x = 1;
> (gdb)
>
> What should I test for in the gdb_test command?
>
> gdb_test "step" "function4 \(\) at .*$srcfile:\[0-9\]+."
>
> or
>
> gdb_test "step" ".*.\[0-9\].*int x \= 1\;
>
>
> Its not working for me in either case currently, unless I use a ".*" at
> the end, which I am trying to avoid (as per daniel's suggestion).
Well, you can test for either. But the second one ought to work
(though you have some more backslashes than you need). When you have
matching troubles, put "exp_internal 1" in front of the line giving you
trouble.
--
Daniel Jacobowitz
CodeSourcery, LLC
prev parent reply other threads:[~2005-05-05 16:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 14:27 Manoj Iyer
2005-05-04 14:43 ` Daniel Jacobowitz
2005-05-04 18:39 ` Manoj Iyer
2005-05-04 18:46 ` Daniel Jacobowitz
2005-05-04 21:59 ` Manoj Iyer
2005-05-04 22:07 ` Daniel Jacobowitz
2005-05-05 16:23 ` Manoj Iyer
2005-05-05 16:27 ` Daniel Jacobowitz [this message]
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=20050505162707.GB14746@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=manjo@austin.ibm.com \
/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