* Follow-fork with gdbserver
@ 2006-08-23 0:31 Michael Snyder
2006-08-23 3:43 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Michael Snyder @ 2006-08-23 0:31 UTC (permalink / raw)
To: Daniel Jacobowitz, GDB General ML; +Cc: Ewa Matejska
Hey Daniel,
How difficult, and how interesting, do you think it would be
to add follow-fork support to gdbserver for native linux?
Cheers,
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Follow-fork with gdbserver
2006-08-23 0:31 Follow-fork with gdbserver Michael Snyder
@ 2006-08-23 3:43 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-08-23 3:43 UTC (permalink / raw)
To: Michael Snyder; +Cc: GDB General ML, Ewa Matejska
On Tue, Aug 22, 2006 at 05:31:39PM -0700, Michael Snyder wrote:
> Hey Daniel,
>
> How difficult, and how interesting, do you think it would be
> to add follow-fork support to gdbserver for native linux?
I did it once for a customer. It wasn't terribly hard, but it was an
incredibly bad hack, because GDB normally does some futzing around with
breakpoints on fork events; gdbserver doesn't have a breakpoint list,
so it doesn't know what to do. So I had it capture some memory writes
and replay them.
Nowadays gdbserver still doesn't set software breakpoints (Z0/z0), but
it does have most of the infrastructure to do it. So, it would
probably be easier to design the new packets without my ugly hack.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-23 3:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-23 0:31 Follow-fork with gdbserver Michael Snyder
2006-08-23 3:43 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox