🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10209

GDB 3.4 under HP-UX v7.0

#10209
From: Mark Costlow
Date: Wed, 31 Jan 1990 00:18
70 lines
2683 bytes
Hi,

    Has anyone gotten gdb to work under HPUX 7.0?  I've run into several
problems.  Some I haven't tackled yet, and some I've tackled and gotten
absolutely nowhere.  

Machine:     hp9000s300
OS:          HP-UX v7.0
GDB version: 3.4

Here's the startup banner:

GDB 3.4, Copyright (C) 1989 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr/local/src/dist-gdb/dcore...done.
Setting up the environment for debugging gdb.
Function fatal not defined.
Type "help" for a list of commands.
(gdb) 

I haven't looked for a cause for the "Function fatal not defined." message
yet.

Major problems:

1) I can't get a stack trace.  Everything I've tried so far gives the
   following message from gdb (these examples involve a dummy program "dcore"
   with divides by zero and causes a core dump):

(gdb) run
Starting program: /usr/local/src/dist-gdb/dcore

Program received signal 8, SIGFPE
0xffffffff in ?? ()
(gdb) bt
#0  0xffffffff in ?? ()
Error reading memory address 0xffffffff: I/O error (5).
(gdb)

2) Breakpoints don't seem to work:

(gdb) b main
Reading in symbols for dcore.c...done.
Breakpoint 1 at 0xa0: file dcore.c, line 5.
(gdb) run
Starting program: /usr/local/src/dist-gdb/dcore

Program received signal 5, SIGTRAP
0xffffffff in ?? ()

The same thing seems to happen no matter what program I use in lieu of
dcore, and no matter where I set the breakpoint.


To get gdb compiled under HPUX 7, I did the following 2 things:

1)  removed hp-include/sys/fcntl.h  - not needed under 7.0

2)  Changed etext to _etext on lines 190 & 201 - hpux 7.0 changed the sym name!


If anyone else is working on this, I'd appreciate hearing from you.  And if
anyone's got any clues or hints about things to look for, I'd love to hear
that too.  Thanks.

Mark
cheeks@edsr.eds.com
Technical Details
Message-ID: <9001310018.AA07329@argon.eds.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!bu-cs!snorkelwacker!tut.cis.ohio-state.edu!UUNET.UU.NET!edsr!jupiter!cheeks

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,f5304feecdc32d96,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-01-30 16:18:24 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!bu-cs!snorkelwacker!tut.cis.ohio-state.edu!UUNET.UU.NET!edsr!jupiter!cheeks
From: edsr!jupiter!cheeks@UUNET.UU.NET (Mark Costlow)
Newsgroups: gnu.gdb.bug
Subject: GDB 3.4 under HP-UX v7.0
Message-ID: <9001310018.AA07329@argon.eds.com>
Date: 31 Jan 90 00:18:24 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 70
Posted: Wed Jan 31 01:18:24 1990