Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2001 12:07:39 -0500 (EST)
From:      "Alexander N. Kabaev" <ak03@gte.com>
To:        freebsd-emulation@freebsd.org
Subject:   Patch is looking for committer
Message-ID:  <XFMail.20011226120739.ak03@gte.com>

next in thread | raw e-mail | index | archive | help
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 <ak03@gte.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20011226120739.ak03>