🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #71940

Can I traced forked subprocess under gdb ?

#71940
From: Lee (John) Mingtzong
Date: Wed, 13 May 1992 07:09
17 lines
1054 bytes
Hello, World:

I need to trace codes in a forked subprocess in C.
I used gcc -g to compile the C program. Then I ran 
gdb to debug the program. In gdb I breaked in a function
called by the subprocess and breaked at a line in
the subprocess. gdb seems to just ignore the break
points to run to finish.

Now the question:

Can I trace the subprocess in gdb ?
If yes, how ?

Thanks for any information.

-- john
Technical Details
Message-ID: <3870@caslon.cs.arizona.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!mips!mips!munnari.oz.au!network.ucsd.edu!mvb.saic.com!arizona.edu!arizona!cs.arizona.edu

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,f9ce5d8972c6fb84,start
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1992-05-12 18:34:34 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!mips!mips!munnari.oz.au!network.ucsd.edu!mvb.saic.com!arizona.edu!arizona!cs.arizona.edu
Newsgroups: gnu.misc.discuss
Subject: Can I traced forked subprocess under gdb ?
Message-ID: <3870@caslon.cs.arizona.edu>
From: john@cs.arizona.edu (Lee (John) Mingtzong)
Date: 13 May 92 07:09:35 GMT
Sender: john@cs.arizona.edu
Organization: U of Arizona CS Dept, Tucson
Lines: 17