🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #1782

Re: Attaching gdb to a running process on an HP

#1782
From: Hamish Macdonald
Date: Sun, 24 Jan 1993 20:52
27 lines
1956 bytes
>>>>> On Sat, 23 Jan 1993 20:05:40 GMT,
>>>>> In message <1993Jan23.200540.10828@Princeton.EDU>,
>>>>> subbarao@fc.hp.com (Kartik Subbarao) wrote:

Kartik> Interesting. I can't even get debugging to work normally with
Kartik> gdb. It always complains "no symbol table". This is even if I
Kartik> use cc -g, c89 -g, gcc -g, or gcc -ggdb. What am I missing
Kartik> here?

There are two ways to use gdb on an HPUX machine.

1) Get gcc to understand and insert HPUX debugging information into
   the object files it creates.  Also get gdb to understand and 
   retrieve HPUX debugging information from the executable.  To my
   knowledge, no-one has done this for a the 680x0 HP machines.  The
   folks at UUtah may have done this for the PA HP machines.

2) Configure GCC to use MIT syntax for object files.  Build gas and
   gld on the HP.  Since the debugging information inserted by gcc
   (and passed along by gas and gld) is the BSD stabs format, you can
   use gdb to debug the executables.  The one drawback is that you
   cannot use shared libraries unless you change gld to understand
   HPUX shared libraries.

The problem you are probbably seeing is that gdb is expecting to find
a BSD style symbol table in the executable, but instead there is just
the HPUX style symbol table.
Technical Details
Message-ID: <1993Jan24.205213.14915@bmerh85.bnr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!torn!nott!bnrgate!bmerh85!bmerh85!hamish
References: <EARL.93Jan22154851@jsi-bwb.jade.ab.ca> <TML.93Jan23110713@hemuli.tik.vtt.fi> <1993Jan23.200540.10828@Princeton.EDU>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.misc.discuss,comp.sys.hp
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!torn!nott!bnrgate!bmerh85!bmerh85!hamish
From: Hamish.Macdonald@bnr.ca (Hamish Macdonald)
Subject: Re: Attaching gdb to a running process on an HP
In-Reply-To: subbarao@fc.hp.com's message of Sat, 23 Jan 1993 20:05:40 GMT
Message-ID: <1993Jan24.205213.14915@bmerh85.bnr.ca>
Lines: 27
Sender: news@bmerh85.bnr.ca (Usenet News)
Organization: Bell Northern Research
References: <EARL.93Jan22154851@jsi-bwb.jade.ab.ca> <TML.93Jan23110713@hemuli.tik.vtt.fi>
 <1993Jan23.200540.10828@Princeton.EDU>
Date: Sun, 24 Jan 93 20:52:13 GMT