🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #529

Re: Attaching to a process

#529
From: jeremy bettis
Date: Fri, 20 Nov 1992 21:04
23 lines
1323 bytes
leisner@wrc.xerox.COM ( Marty Leisner) writes:

>I'm using gdb-4.7 on sunOS 4.1.2.

>When I do gdb +help, it says:
>This is GDB, the GNU debugger.  Use the command
>    gdb [options] [executable [core-file]]
>to enter the debugger.
>	leisner@annapurna$ gdb /usr/marty/bin/tin 7123

>How do I attach to a process? 

I think what you need to do it type gdb /usr/marty/bin/tin
and then when it prompts you gdb> type help running.  This ought to give
the command to link to an existing process.  I have never tried it.  Usually
I just type gdb filename
gdb>  run -options arguments
then begin the debugging.
--
Jeremy Bettis   -*-   Jerbo Jehoshaphat   -*-   University of Nebraska
INET:	jbettis@cse.unl.edu		"Those who stand in the middle of the
	bt757@Cleveland.Freenet.Edu	 road are often hit by passing cars."
 BBS:	The Dew Drop Inn (402)476-8807 3/12/24
Technical Details
Message-ID: <1ejjs9INNm3l@crcnis1.unl.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cse.unl.edu!jbettis
References: <1992Nov19.143819.12246@spectrum.xerox.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cse.unl.edu!jbettis
From: jbettis@cse.unl.edu (jeremy bettis)
Subject: Re: Attaching to a process
Message-ID: <1ejjs9INNm3l@crcnis1.unl.edu>
Sender: gnulists@ai.mit.edu
Organization: University of Nebraska--Lincoln
References: <1992Nov19.143819.12246@spectrum.xerox.com>
Distribution: gnu
Date: Fri, 20 Nov 1992 21:04:09 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 24