🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10096

Followup: GDB under HPUX 7.0?

#10096
From: Tom Lane
Date: Sat, 28 Apr 1990 03:16
25 lines
1876 bytes
In article <9038@pt.cs.cmu.edu>, I said:
> Has anyone gotten GDB 3.5 to work under HPUX 7.0 on series 300
> machines?  [stuff deleted]  maybe the problem is just that the
> KERNEL_U_ADDR offset has changed again.  A new value (or even better, a
> version-independent means of obtaining it) would be much appreciated.

A couple of helpful people have pointed out that nlist(3) can be used
to obtain the value of the kernel's "_u" symbol, or even easier,

	nm /hp-ux | grep " _u$"

I plan to send in a patch to make gdb obtain this value automatically,
rather than requiring an ever-growing list of kernel-version-dependent
magic constants.  The minimal fix would extract the right value at
gdb build time & insert the correct value in the #define constant;
the other alternative is to use nlist(3) to extract the right value
whenever gdb starts up.  If anyone has any strong feelings on which way
is the right way to go, please e-mail me.

-- 
				tom lane
Internet: tgl@cs.cmu.edu
UUCP: <your favorite internet/arpanet gateway>!cs.cmu.edu!tgl
BITNET: tgl%cs.cmu.edu@cmuccvma
CompuServe: >internet:tgl@cs.cmu.edu
Technical Details
Message-ID: <9056@pt.cs.cmu.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!snorkelwacker!bionet!rutgers!apple!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!zog.cs.cmu.edu!tgl
References: <9038@pt.cs.cmu.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,f960cdd27c8a3166
X-Google-Attributes: gidf5053,public
X-Google-Thread: 114b0c,f960cdd27c8a3166
X-Google-Attributes: gid114b0c,public
X-Google-ArrivalTime: 1990-04-27 20:16:29 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!snorkelwacker!bionet!rutgers!apple!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!zog.cs.cmu.edu!tgl
From: tgl@zog.cs.cmu.edu (Tom Lane)
Newsgroups: gnu.gdb.bug,comp.sys.hp
Subject: Followup: GDB under HPUX 7.0?
Summary: Solution found.
Message-ID: <9056@pt.cs.cmu.edu>
Date: 28 Apr 90 03:16:29 GMT
References: <9038@pt.cs.cmu.edu>
Organization: Carnegie-Mellon University, CS/RI
Lines: 25
Posted: Sat Apr 28 04:16:29 1990