Re: [RFA] Find and read symbol files after attach (linux)

Daniel Jacobowitz
2002-01-08T03:00:16Z

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...]

(A) Is there any reason not to do it for all Linuxen in
config/nm-linux.h?

(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.

I've got nothing against adding linux /proc support, but I don't see
why it's needed for this.

--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer