From: "Justin Ferguson" <jnferguson@gmail.com>
To: gdb@sourceware.org
Subject: following execve()
Date: Tue, 01 Jul 2008 04:41:00 -0000 [thread overview]
Message-ID: <705543260806302140t1bc8c568wea5175b9cc728e53@mail.gmail.com> (raw)
Hi,
What is the suggested method for following an execve() in an
application? I seem to remember I used to get a sigtrap, but not so
much anymore-- googling around I see that it looks like using tcatch
exec/cont/tbreak main is supposed to work, naturally it does not, the
break in main attempts to break in the original applications context,
and then it fails to be able to really do much of anything
(presumably) due to not properly attaching to the new process and not
being able to access it's memory. Then stack corruption occurs in the
target application, which causes gdb to just hang and requires me to
kill -9 it.
So how exactly am I supposed to do this?
next reply other threads:[~2008-07-01 4:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 4:41 Justin Ferguson [this message]
2008-07-01 12:43 ` Daniel Jacobowitz
2008-07-01 22:16 ` Justin Ferguson
2008-07-01 23:36 ` Daniel Jacobowitz
2008-07-02 1:19 ` Justin Ferguson
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=705543260806302140t1bc8c568wea5175b9cc728e53@mail.gmail.com \
--to=jnferguson@gmail.com \
--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