1831466 Members
3109 Online
110025 Solutions
New Discussion

GDB error in HP-UX

 
Balaji C S
New Member

GDB error in HP-UX

I am in the porcess of reading a core file generated from a software.

Earlier used the dbx and stack trace in Solaris for the same.

Is GDB equivalent to the same? Also tried running gdb on the generated core. First time it could run successflly and did say me where its being blocked but when i tried the same it gave me the following error.
=======================
not in executable format: File format not recognized
=======================

Do let me how to resolve the same?

3 REPLIES 3
T G Manikandan
Honored Contributor

Re: GDB error in HP-UX

I am not sure about the file bit version.

32 bit and 64 bit.

get the latest versions of gdb.
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/gdb-5.3/
Muthukumar_5
Honored Contributor

Re: GDB error in HP-UX

Hai,

We can use the GDB or ADB to get the stack trace of a core file. Or you can analyse the files as,

file core
what core

with gdb:
gdb

gdb > where
gdb > bt

We have to have debugging symbols on application ( -g enablement must be there)

Check more at,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619077

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
H.Merijn Brand (procura
Honored Contributor

Re: GDB error in HP-UX

5.3 is for sure /not/ the latest version. Maybe it's the latest version on HP's porting center, but my gcc ports include gdb-6.1.1, which is currently the most recent version of GNU gdb. gcc 64bit contains the 64bit version and gcc 32bit contains the 32bit version

HP-UX is known to be a not-too-easy platform for debuggers. gdb, adb, dbg, ddd, xdb
I've tried most, and kept as many as possible. Not a single one has proven to work on all cores :(

My HP ITRC site pages can be found at (please use LA as primary choice):

USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn

Enjoy, Have FUN! H.Merijn