1834499 Members
3325 Online
110068 Solutions
New Discussion

gdb and 64bit core files

 
SOLVED
Go to solution
Ken_109
Advisor

gdb and 64bit core files

Hi,

I'm trying to get gdb to process a core file generated from an intentional core dump from a program that is 64bit. It was compiled using gcc 4.0.2 (64bit).
file core -> ELF-64 PA-RISC 2.0
and KCORE (binary) -> ELF 64 executable object

gdb kcore core
-> GDB can't read core files on this system.
Why is this? And is there any version of GDB that can?

Thanks,
Ken
5 REPLIES 5
Ken_109
Advisor

Re: gdb and 64bit core files

Also the OS version is: HPUX 11.11..
Arunvijai_4
Honored Contributor
Solution

Re: gdb and 64bit core files

Hi Ken,

You also need to use wdb from HP, which includes 64 bit gcc. You can download wdb5.3 from,

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1662,00.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: gdb and 64bit core files

check your gdb file type. It is capable to support 32 bit. Try to get 64 bit wdb (gdb) for debugging this.


Or use like,

# what core

# adb kcore core
adb> $c

It will core informations.

--
Muthu
Easy to suggest when don't know about the problem!
Ken_109
Advisor

Re: gdb and 64bit core files

Thanks... After installing the wdb and running the gui against a 64 bit binary, I get a SIGILL, Illedgal instruction
si_code: 8 - ILL_ILLOPC - Illegal Op-Code.

The code was compiled using gcc 4.0.2. The linker is the bundled linker..

I'm still not able to perform 64bit debugging. Any thoughts?
Arunvijai_4
Honored Contributor

Re: gdb and 64bit core files

Hi Ken,

You said, After installing the wdb and running the gui against a 64 bit binary, I get a SIGILL, Illedgal instruction
si_code: 8 - ILL_ILLOPC - Illegal Op-Code.

The code was compiled using gcc 4.0.2. The linker is the bundled linker..


Can you run in command line not GUI ?

# gdb core

will invoke 64 bit GCC if application is 64 bit.

-Arun


"A ship in the harbor is safe, but that is not what ships are built for"