🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #713

Debugging multiple processes

#713
From: Jason Morris
Date: Thu, 28 Jan 1993 15:12
11 lines
971 bytes
  Anyone know how to use gdb() with more than one process (e.g. parent and
child) ? I've tried getting the processes up and running and then using
"attach", but I just get:

       "Can't attach to a process on this machine."

  Any ideas how to get it running so you are debugging the child? The parent
is easy as fork() always returns the pid of the child.

    Jas.
Technical Details
Message-ID: <1993Jan28.151226.1443@dcs.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!warwick!dcs.warwick.ac.uk!jas

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!warwick!dcs.warwick.ac.uk!jas
From: jas@dcs.warwick.ac.uk (Jason Morris)
Subject: Debugging multiple processes
Message-ID: <1993Jan28.151226.1443@dcs.warwick.ac.uk>
Sender: news@dcs.warwick.ac.uk (Network News)
Nntp-Posting-Host: slate
Organization: Department of Computer Science, Warwick University, England
Date: Thu, 28 Jan 1993 15:12:26 GMT
Lines: 12