From: Fred Fish <fnf@ninemoons.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com, fnf@redhat.com
Subject: Re: [RFA] Fix testsuite gdb.base/bang.exp to work with remote targets
Date: Mon, 02 Feb 2004 20:56:00 -0000 [thread overview]
Message-ID: <200402021356.34295.fnf@ninemoons.com> (raw)
In-Reply-To: <20040202203201.GA7318@nevyn.them.org>
On Monday 02 February 2004 13:32, Daniel Jacobowitz wrote:
> How about gdb_run_cmd?
Initially I tried that and had some problems, but I just went back and tried
the following:
gdb_run_cmd
gdb_expect {
-re ".*Program exited normally\." {
pass "run program"
}
timeout {
fail "run program (timeout)"
}
}
which worked:
(gdb) jump *start
No symbol "start" in current context.
(gdb) jump *_start
Continuing at 0x1016.
0
*** EXIT code 0
Program exited normally.
PASS: gdb.base/bang.exp: run program
I'm not sure what happened the first time I tried gdb_run_cmd.
However, there is some precedence for just checking use_gdb_stub to
decide whether to "run" or "continue" as there are several other
places in the testsuite where this is done. Though it could be argued
that perhaps they should be converted to use gdb_run_cmd also.
On the other hand, I'm not entirely comfortable with some of the
assumptions made in gdb_run_cmd, such as jumping to "start" or
"_start". I've seen some load images in the past that don't
necessarily have the starting address in the image set to "start" or
"_start", but instead do things like have it set to a reset vector at
address zero that jumps to some other place in the image and
eventually ends up going through "start".
It would also be nice to know what this comment in
gdb_run_cmd is all about:
# This doesn't work quite right yet.
-Fred
next prev parent reply other threads:[~2004-02-02 20:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-02 20:26 Fred Fish
2004-02-02 20:32 ` Daniel Jacobowitz
2004-02-02 20:56 ` Fred Fish [this message]
2004-02-02 21:01 ` Daniel Jacobowitz
2004-02-02 21:17 ` Fred Fish
2004-02-02 21:23 ` 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=200402021356.34295.fnf@ninemoons.com \
--to=fnf@ninemoons.com \
--cc=drow@mvista.com \
--cc=fnf@redhat.com \
--cc=gdb-patches@sources.redhat.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