debugging multi-threaded linux binaries
Steven Hartland
killing at multiplay.co.uk
Wed Nov 24 17:03:46 PST 2004
To view the full trace u can symlink
/compat/linux/lib -> /lib under 4.x -> 5.1
in 5.2+ is more complicated and u have to symlink the individual files
for the debugger to find them. an alternative may be to install
a linux version of gdb but not tried that:
The following may be of help under 5.2+ seems to help in most
cases here.
[debug_linux.sh]
#!/bin/sh
LIBS="/lib/libdl.so.2 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libc.so.6 /lib/ld-linux.so.2 /lib/libnss_files.so.2 /l
ib/libnss_dns.so.2 /lib/libresolv.so.2 /lib/libdl.so.2 /lib/libpthread.so.0 /lib/libm.so.6 /lib/libresolv.so.2 /lib/l
ibnss_dns.so.2 /lib/ld-linux.so.2 /lib/libnss_files.so.2"
for i in $LIBS; do
if [ ! -e $i ]; then
ln -s /usr/compat/linux/$i $i
fi
done
[/debug_linux.sh]
----- Original Message -----
From: "Hannes Mehnert" <hannes at mehnert.org>
> 2) FreeBSD gdb is not able to find the shared libraries (although ldd
> is able to). I get only ?? () in gdb backtrace.
================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.
In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster at multiplay.co.uk.
More information about the freebsd-emulation
mailing list