🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1014

Re: 3.0 gdb does not work? (Oh yes it does!)

#1014
From: Richard O'Neill
Date: Sun, 13 Sep 1992 23:46
57 lines
2450 bytes
Miron Cuperman <miron@extropia.wimsey.bc.ca> writes:
>When I try to run gdb, it fails to even create the child process.
>For example, trying gdb on /bin/cat:

Well, I took your example and tried it myself on my NS 3.0 (release) machine
and it worked fine...

Maybe your 3.0 installation is screwed or something...

    Richard.

(Boring details follow...)

>% gdb -nx /bin/cat
>Reading symbol data from /bin/cat...
>(no debugging symbols found)...done.
>Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
>(gdb) b abort
>Breakpoint 1 at 0x505358a
>(gdb) run
>Starting program: /bin/cat 
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Program generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>^CProgram generated(1): Memory access exception on address 0x7d6f8 (invalid address).
>Quit
>0x501e7fa in _cproc_fork_child ()
>(gdb) bt
>#0  0x501e7fa in _cproc_fork_child ()
>#1  0x502e444 in _cthread_fork_child ()
>#2  0x5008544 in fork ()
>#3  0x2ff2e in ?? ()
>#4  0x1b83e in ?? ()
>#5  0x3bea in ?? ()
>#6  0x25d30 in ?? ()
>#7  0x3cb8 in ?? ()
>#8  0x3a78 in ?? ()
>(gdb) 

% gdb /bin/cat
Reading symbol data from /bin/cat...
(no debugging symbols found)...done.
Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
(gdb) run
Starting program: /bin/cat 
No apparent problems here...
No apparent problems here...
^D
Program exited normally.
(gdb) Quit
% 
-- 
Composing a suitably apt and witty | [Mail to home machine is down right now]
signature and disclaimer is left   | oneill@fornax.UUCP | NeXTmail OK, but
as an exercise for the reader.     | oneill@cs.sfu.ca   | not >100K OK!
Technical Details
Message-ID: <1992Sep13.234632.27806@cs.sfu.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!fornax!oneill
References: <1992Sep12.092712.706@extropia.wimsey.bc.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!fornax!oneill
From: oneill@cs.sfu.ca (Richard O'Neill)
Subject: Re: 3.0 gdb does not work? (Oh yes it does!)
Message-ID: <1992Sep13.234632.27806@cs.sfu.ca>
Keywords: gdb
Organization: CSS, Simon Fraser University, Burnaby, B.C., Canada
References: <1992Sep12.092712.706@extropia.wimsey.bc.ca>
Date: Sun, 13 Sep 1992 23:46:32 GMT
Lines: 57