Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* following execve()
@ 2008-07-01  4:41 Justin Ferguson
  2008-07-01 12:43 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Justin Ferguson @ 2008-07-01  4:41 UTC (permalink / raw)
  To: gdb

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?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-02  1:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-01  4:41 following execve() Justin Ferguson
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox