From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org
Subject: Re: linux-thread-db.c not only caller of add_thread, -> gdb segv
Date: Sat, 10 Nov 2007 16:00:00 -0000 [thread overview]
Message-ID: <20071110160052.GA25807@caradoc.them.org> (raw)
In-Reply-To: <e394668d0711092120t4164db7dw94d4ac58f3740c1d@mail.gmail.com>
On Fri, Nov 09, 2007 at 09:20:25PM -0800, Douglas Evans wrote:
> On Nov 9, 2007 7:40 PM, Douglas Evans <dje@google.com> wrote:
> > I suspect it's a matter of degrees (so to speak) or word choice (apologies).
> > Until MAY_FOLLOW_EXEC is true for linux I'd expect gdb to return control
> > to the user when an exec() happens.
> > Am I wrong in thinking gdb will lose control across the exec()?
>
> I guess what gdb does for an exec() when MAY_FOLLOW_EXEC==0 is at
> least partially a matter of taste or definition. Running some
> experiments I can see that I can control (e.g. single step) the "new"
> process after the exec but the symbol info is all wrong if I exec() a
> different program.
Right. Thus the patch I mentioned (sorry, should have found the link
yesterday):
http://sourceware.org/ml/gdb-patches/2007-10/msg00455.html
> With this patch I can step across the exec from test-exec1.c to test-exec2.c.
> IWBN if gdb remembered the original program so that if I run it again,
> gdb reruns test-exec1.x and not test-exec2.x.
Yeah. I haven't figured out what to do about that, or all the various
implications... for instance, if you say "file" should that override
the program to run the next time? So I've just fixed it as it was and
not messed with the dubious UI. There may be more to come on this topic...
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-11-10 16:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 4:38 Douglas Evans
2007-11-09 14:02 ` Daniel Jacobowitz
2007-11-10 1:27 ` Douglas Evans
2007-11-10 3:26 ` Daniel Jacobowitz
2007-11-10 3:40 ` Douglas Evans
2007-11-10 5:20 ` Douglas Evans
2007-11-10 16:00 ` 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=20071110160052.GA25807@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@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