🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: 3.0 gdb does not work?

#1057
From: Vince Demarco
Date: Mon, 14 Sep 1992 03:54
52 lines
1945 bytes
I also have a similar problem with gdb in 3.0 here is some sample
output.

<gdb running as root>
# gdb a.out
Reading symbol data from a.out...done.
Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
(gdb) run
Starting program: /private/tmp/a.out 
asdf

Program exited normally.
(gdb) 
# 
# su vince
<gdb is now running as a normal user>
1 -[/tmp]: gdb a.out
Reading symbol data from a.out...done.
Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
(gdb) run
Starting program: /private/tmp/a.out 
Problem attaching to pid 937.
(gdb) 
2 -[/tmp]: 


------------
Everything is fine if you run gdb as root, which leads me to believe
that it is a problem with permissions someplace. I tryed setting gdb
to setuid root, but nothing helped.  

if i try this:
18 -[/tmp]: gdb -nx /bin/ls
Reading symbol data from /bin/ls...
(no debugging symbols found)...done.
Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
(gdb) run
Starting program: /bin/ls 
Problem attaching to pid 1028.

I get the same result.

Any help would be greately appreciated.

And by the way, when i installed 3.0 i reformated my HD, i didn't use
the Upgrade 3.0 application.

vince

vince@whatnxt.cuc.ab.ca    (NeXT Mail accepted)
demarco@cpsc.ucalgary.ca
Technical Details
Message-ID: <DEMARCO.92Sep13205456@fsd.cpsc.ucalgary.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!newshost!demarco
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!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!newshost!demarco
From: demarco@fsd.cpsc.ucalgary.ca (Vince Demarco)
Subject: Re: 3.0 gdb does not work?
In-Reply-To: miron@extropia.wimsey.bc.ca's message of Sat, 12 Sep 1992 09:27:12 GMT
Message-ID: <DEMARCO.92Sep13205456@fsd.cpsc.ucalgary.ca>
Sender: news@cpsc.ucalgary.ca (News Manager)
Organization: University of Calgary
References: <1992Sep12.092712.706@extropia.wimsey.bc.ca>
Date: Mon, 14 Sep 1992 03:54:56 GMT
Lines: 55