debugging multi-threaded linux binaries

Hannes Mehnert hannes at mehnert.org
Wed Nov 24 15:52:54 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

while trying to debug a multithreaded linux binary, I had the following
problems (using linux_base-8-8.0_4 and linux_devtools-8.0_2):

1) if the binary gets a SIGSEGV and generates a core file, I'm unable to
   open this in linux gdb (getting following warnings):
warning: Couldn't find general-purpose registers in core file.
warning: Wrong size fpregset in core file.
#0  0x0827f598 in ?? ()

2) FreeBSD gdb is not able to find the shared libraries (although ldd
   is able to). I get only ?? () in gdb backtrace.

3) When trying to execute the binary via gdb, info threads always
   returns 0 threads, I'm only able to debug the parent process.


Any ideas how to use the FreeBSD core file in linux gdb or how to tell
FreeBSD gdb about linux libraries?

Regards,

Hannes Mehnert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBpR7NRcuNlziBjRwRAmbwAKC6KbZkyKqcB7jhKlhfiWoXAhe3igCghkLM
yxbZaV9UxgtsRm4s75TODgI=
=ayYB
-----END PGP SIGNATURE-----


More information about the freebsd-emulation mailing list