Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2004 00:52:49 +0100
From:      Hannes Mehnert <hannes@mehnert.org>
To:        freebsd-emulation@freebsd.org
Subject:   debugging multi-threaded linux binaries
Message-ID:  <20041124235249.GO41535@mehnert.org>

next in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041124235249.GO41535>