1834098 Members
2325 Online
110063 Solutions
New Discussion

gdb error

 
SOLVED
Go to solution
malay boy
Trusted Contributor

gdb error

Hi,
I got this error using gdb :

bash$ gdb cah
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.00"..."/tmp_mnt/honshu_cse/bscs800_tcl03/develop/bscs800/tcl03/batch/src/mp/cah.f241759/cah": not in executable format: File format not recognized

The funny this cah is an executable.

regards
mB
There are three person in my team-Me ,myself and I.
4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor
Solution

Re: gdb error

Executable, but maybe not in a gdb recognizable format. What does

# file cah

return? and

# file `which gdb`

FYI for debugging a 64bit application, you need a 64bit gdb

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
malay boy
Trusted Contributor

Re: gdb error

Hi Merijin,
Here teh output :
$ file pth
pth: ELF-64 executable object file - PA-RISC 2.0 (LP64)

$ file `which gdb`
/usr/local/bin/gdb: PA-RISC1.1 shared executable dynamically linked -not stripped

is this mean I need to download new gdb?.

regards
mB
There are three person in my team-Me ,myself and I.
H.Merijn Brand (procura
Honored Contributor

Re: gdb error

Correct. This gdb is for 32bit binaries only.
Get yourself a 64bit gdb, but do not overwrite the old one, which you still have to use for 32bit applications

64bit gdb is, next to the regular places, also available on my ITRC site:

Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://ww.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
malay boy
Trusted Contributor

Re: gdb error

Thanks merijin.Problem solved.By the way,you gdb link in your website is not working.I download from http://hpux.connect.org.uk/.

regards
mB
There are three person in my team-Me ,myself and I.