Subject: Re: gdb attach
To: Nick Hudson <email@example.com>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
Date: 11/26/2006 18:37:32
Content-Type: text/plain; charset=us-ascii
On Fri, Nov 17, 2006 at 07:39:11AM +0000, Nick Hudson wrote:
> Here's a patch to make gdb6 attach work in a similar way to the fix I app=
> to gdb5 for i386 only so far.
> The difference is that gdb6 likes to have the filename to display and re-=
> the filename after the process dies so I've added an exe symlink to procf=
> the same as Linux. I'm avoiding the discussion as to whether this is the =
> way to get the filename from a pid. ;) FWIW, FreeBSD does this as well.
> Any comments before I commit?
This makes gdb require mounted procfs, which is a serious regression,
(Besides depending on recent change 'exe' being a symlink with
associated reverse name cache overhead, which I tackle in separate
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=3D- We can walk our road together if our goals are all the same; -=3D-
-=3D- We can run alone and free if we pursue a different aim. -=3D-
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
-----END PGP SIGNATURE-----