From owner-freebsd-emulation@FreeBSD.ORG Thu Nov 25 01:03:46 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16B2B16A4CE for ; Thu, 25 Nov 2004 01:03:46 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D4C843D46 for ; Thu, 25 Nov 2004 01:03:45 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.2.1.R) with ESMTP id md50000741650.msg for ; Thu, 25 Nov 2004 00:54:53 +0000 Message-ID: <005e01c4d28a$76271890$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Hannes Mehnert" , References: <20041124235249.GO41535@mehnert.org> Date: Thu, 25 Nov 2004 01:02:36 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Spam-Processed: multiplay.co.uk, Thu, 25 Nov 2004 00:54:53 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-emulation@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 25 Nov 2004 00:54:56 +0000 Subject: Re: debugging multi-threaded linux binaries X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2004 01:03:46 -0000 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" > 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.