This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] Find and read symbol files after attach (linux)
Date: Mon, 7 Jan 2002 21:59:57 -0500
From: Daniel Jacobowitz <firstname.lastname@example.org>
Cc: email@example.com, firstname.lastname@example.org, email@example.com
Mail-Followup-To: Michael Snyder <firstname.lastname@example.org>,
Content-Type: text/plain; charset=us-ascii
On Mon, Jan 07, 2002 at 04:40:00PM -0800, Michael Snyder wrote:
> [oops, hit send too soon...]
> This change allows GDB to find and read the symbol files (including
> all shared libraries) on Linux when you attach to an anonymous PID.
> It should work for all Linuxen, but for now I've only added it to the
> linux.mh and nm-linux.h files in config/i386. Please feel free to
> add it to your targets.
[without actually looking at it...]
[...for both of us]
(B) Why do we need /proc to do this? We should be able to use the
information in the link map - which we already access in solib-svr4.h -
to get all of this.
Nope. You can't get at the executable itself this way.