From: Daniel Jacobowitz <drow@mvista.com>
To: Fred Fish <fnf@intrinsity.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Fix inferior restart problem in gdb.base/commands.exp
Date: Sat, 07 Sep 2002 10:11:00 -0000 [thread overview]
Message-ID: <20020907171058.GA27358@nevyn.them.org> (raw)
In-Reply-To: <200209071404.g87E4kb19664@beeville.vert.intrinsity.com>
On Sat, Sep 07, 2002 at 09:04:45AM -0500, Fred Fish wrote:
> When running the gdb testsuite with an external simulator like "sid", if the
> inferior is allowed to run to completion and exit, a simple gdb_run_cmd may
> have problems rerunning the inferior since it doesn't do a complete restart.
>
> An alternative to gdb_run_cmd is to do the following prior to setting up
> the test and then later do just a continue instead of gdb_run_cmd:
>
> gdb_exit
> gdb_start
> delete_breakpoints
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load ${binfile}
>
> but that is much more expensive. It is sufficient to just not allow the
> inferior to run to completion. This patch does that.
>
> Also, to avoid having to specifically test for noinferiorio we don't
> check for output from the test case, it is not relevant to the given
> test anyway.
I don't really like this. Isn't there some way you can make re-issuing
gdb_run_cmd work for sid? It works for gdbserver, I believe, though I
have to play some games to do it. (The test itself fails but due to a
bad regular expression construct, I think - not sure why. The desired
behavior is indeed there.) I don't like having to work around all
sorts of targets in the testsuite more than necessary.
I've had a kernel bug this week that only showed up when GDB ran a
program multiple times. Is there anywhere else in the testsuite that
continues to cover that?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2002-09-07 17:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-07 7:05 Fred Fish
2002-09-07 7:11 ` Fred Fish
2002-09-07 9:07 ` Fred Fish
2002-09-07 10:11 ` 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=20020907171058.GA27358@nevyn.them.org \
--to=drow@mvista.com \
--cc=fnf@intrinsity.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