From owner-freebsd-emulation Wed Dec 26 9: 7:44 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by hub.freebsd.org (Postfix) with ESMTP id 171A537B417 for ; Wed, 26 Dec 2001 09:07:40 -0800 (PST) Received: (from ak03@localhost) by h132-197-179-27.gte.com (8.11.6/8.11.4) id fBQH7dG10729 for freebsd-emulation@freebsd.org; Wed, 26 Dec 2001 12:07:39 -0500 (EST) (envelope-from ak03) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 26 Dec 2001 12:07:39 -0500 (EST) Organization: Verizon Laboratories Inc. From: "Alexander N. Kabaev" To: freebsd-emulation@freebsd.org Subject: Patch is looking for committer Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I had to debug linux binary-only program recently which was crashing in seemingly unpredictable places, with no Linux box in sight to debug the problem in native environment. Apparently, FreeBSD native gdb has a very limited usefullness when debugging Linux binaries. It cannot hook up with the Linux dynamic loader and consequently it is unable to track shared libraries usage by the Linux binary. It also has no idea where to look for Linux libraries. I solved the probem by implementing the necessary ptrace interface in the Linux emulator and now Linux native gdb is able to debug Linux binaries under FreeBSD kernel. So far it seems to work 100% reliably for me. If any committer is interested in reviewing my patch, please contact me off the list and I will mail the patch (both -CURRENT and -STABLE patches available). I think the ability to run linux debuggers can be of some use for other people besides myself. -------------------------------------------- E-Mail: Alexander N. Kabaev Date: 26-Dec-2001 Time: 11:36:19 -------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message