* Debugging a process that does fork on Intel Linux
@ 2002-08-21 12:11 Datoda
2002-08-21 12:17 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Datoda @ 2002-08-21 12:11 UTC (permalink / raw)
To: gdb
Hi,
GDB has the concept of a catchpoint to catch a
fork syscall in the debuggee. Alas, it doesn't work
(yet) on intel linux. I put a little thought in it and
thinks that what's missing is a kernel support for
putting the parent and the child processes in a
stopped state when the fork syscall is complete. At
that point, the debugger can then attach to the child
process and bring it under control.
I was wondering if such a kernel support exists?
If not, is there a plan for adding it? Or are there
other ideas for catching forks on Linux? TIA.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Debugging a process that does fork on Intel Linux
2002-08-21 12:11 Debugging a process that does fork on Intel Linux Datoda
@ 2002-08-21 12:17 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2002-08-21 12:17 UTC (permalink / raw)
To: Datoda; +Cc: gdb
On Wed, Aug 21, 2002 at 12:11:35PM -0700, Datoda wrote:
> Hi,
>
> GDB has the concept of a catchpoint to catch a
> fork syscall in the debuggee. Alas, it doesn't work
> (yet) on intel linux. I put a little thought in it and
> thinks that what's missing is a kernel support for
> putting the parent and the child processes in a
> stopped state when the fork syscall is complete. At
> that point, the debugger can then attach to the child
> process and bring it under control.
>
> I was wondering if such a kernel support exists?
> If not, is there a plan for adding it? Or are there
> other ideas for catching forks on Linux? TIA.
I agree. I finished the kernel support last week, coincidentally. I'm
trying to get comments on it on linux-kernel before I port it to 2.4
and post the GDB bits (which work, but need some cleaning).
It may be a month or two. When I get around to doing the 2.4 port,
I'll let the list know.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-21 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-21 12:11 Debugging a process that does fork on Intel Linux Datoda
2002-08-21 12:17 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox