From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 24 23:52:54 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 5F73A16A4CE for ; Wed, 24 Nov 2004 23:52:54 +0000 (GMT) Received: from beagle2.mehnert.org (beagle2.mehnert.org [212.42.235.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8490943D46 for ; Wed, 24 Nov 2004 23:52:53 +0000 (GMT) (envelope-from hannes@mehnert.org) Received: from localhost (port-212-202-0-53.dynamic.qsc.de [212.202.0.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Hannes Mehnert", Issuer "mehnert root CA" (verified OK)) by beagle2.mehnert.org (Postfix) with ESMTP id 53E5F9585D for ; Thu, 25 Nov 2004 00:52:51 +0100 (CET) Date: Thu, 25 Nov 2004 00:52:49 +0100 From: Hannes Mehnert To: freebsd-emulation@freebsd.org Message-ID: <20041124235249.GO41535@mehnert.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: 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: Wed, 24 Nov 2004 23:52:54 -0000 -----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-----