Re: gdb and debugging Linux binaries

2001-02-24 Thread Jim . Pirzyk
On 22-Feb-01 Greg Lehey wrote: /compat/linux/ /usr/bin/gdb, it says the core file is in the wrong format: Couldn't fetch registers from core file: File in wrong format Couldn't fetch register set 2 from core file: File in wrong format So what is the correct procedure for

Re: gdb and debugging Linux binaries

2001-02-23 Thread Greg Lehey
On Thursday, 22 February 2001 at 13:55:07 -0800, Jim Pirzyk wrote: I have a question on how to debug Linux binaries. I have a core file from the linux binary, but if I use the FreeBSD gdb, it cannot find the shared libraries in /compat/linux/ If I use the /compat/linux/ /usr/bin/gdb,

Re: gdb and debugging Linux binaries

2001-02-23 Thread Marcel Moolenaar
Greg Lehey wrote: On Thursday, 22 February 2001 at 13:55:07 -0800, Jim Pirzyk wrote: I have a question on how to debug Linux binaries. I have a core file from the linux binary, but if I use the FreeBSD gdb, it cannot find the shared libraries in /compat/linux/ If I use the

Re: gdb and debugging Linux binaries

2001-02-23 Thread Drew Eckhardt
You may be able to force gdb to pick up the right files using the add-symbol-file command. Or the sharedlibrary command. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: gdb and debugging Linux binaries

2001-02-23 Thread Daniel O'Connor
On 22-Feb-01 Greg Lehey wrote: /compat/linux/ /usr/bin/gdb, it says the core file is in the wrong format: Couldn't fetch registers from core file: File in wrong format Couldn't fetch register set 2 from core file: File in wrong format So what is the correct procedure for debugging

gdb and debugging Linux binaries

2001-02-22 Thread Jim Pirzyk
I have a question on how to debug Linux binaries. I have a core file from the linux binary, but if I use the FreeBSD gdb, it cannot find the shared libraries in /compat/linux/ If I use the /compat/linux/ /usr/bin/gdb, it says the core file is in the wrong format: Couldn't fetch registers