Date: Thu, 25 Nov 2004 01:02:36 -0000 From: "Steven Hartland" <killing@multiplay.co.uk> To: "Hannes Mehnert" <hannes@mehnert.org>, <freebsd-emulation@freebsd.org> Subject: Re: debugging multi-threaded linux binaries Message-ID: <005e01c4d28a$76271890$b3db87d4@multiplay.co.uk> References: <20041124235249.GO41535@mehnert.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@multiplay.co.uk.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005e01c4d28a$76271890$b3db87d4>