Article View: comp.unix.programmer
Article #15Re: Debugging forking programs?
From: Dave Woerner
Date: Wed, 28 Oct 1992 17:56
Date: Wed, 28 Oct 1992 17:56
13 lines
1010 bytes
1010 bytes
jason@jarthur.claremont.edu (Jason Merrill) writes: >When debugging a program with gdb, if a fork statement is encountered gdb >stays with the parent process. Is there any way to control the child? For your debugger to debug children, you need to be running on a system whose kernel supports this. The ones I know of that do this are MIPS, SGI, and CDC. I'm sure there are others. If the kernel supports it, then the debugger also needs to be "multi-process aware". I don't know if gdb is, but dbx is on the above mentioned platforms. Dave
Technical Details
Message-ID:
<49055@shamash.cdc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!network.ucsd.edu!sdcrsi!equalizer!timbuk.cray.com!shamash!dbwReferences:
<1992Oct28.062513.15742@muddcs.claremont.edu> <1992Oct28.065820.16583@muddcs.claremont.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!network.ucsd.edu!sdcrsi!equalizer!timbuk.cray.com!shamash!dbw From: dbw@svl.cdc.com (Dave Woerner) Newsgroups: comp.unix.programmer Subject: Re: Debugging forking programs? Message-ID: <49055@shamash.cdc.com> Date: 28 Oct 92 17:56:23 GMT Article-I.D.: shamash.49055 References: <1992Oct28.062513.15742@muddcs.claremont.edu> <1992Oct28.065820.16583@muddcs.claremont.edu> Sender: usenet@shamash.cdc.com Lines: 13