Subject: Re: gdb attach
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-toolchain
Date: 11/28/2006 11:02:39
--rQ2U398070+RC21q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 26, 2006 at 06:37:32PM +0100, Jaromir Dolecek wrote:
> On Fri, Nov 17, 2006 at 07:39:11AM +0000, Nick Hudson wrote:
> > Hi,
> >=20
> > Here's a patch to make gdb6 attach work in a similar way to the fix I a=
pplied=20
> > to gdb5 for i386 only so far.
> >=20
> > The difference is that gdb6 likes to have the filename to display and r=
e-open=20
> > the filename after the process dies so I've added an exe symlink to pro=
cfs in=20
> > the same as Linux. I'm avoiding the discussion as to whether this is th=
e best=20
> > way to get the filename from a pid. ;) FWIW, FreeBSD does this as well.
> >=20
> > Any comments before I commit?
>=20
> This makes gdb require mounted procfs, which is a serious regression,
> isn't it?

Well, is is a regression in our code or in gdb6?

Sadly, we will occasionally run into cases where other OSs and app=20
requirements push what we need to do. :-(

Take care,

Bill

--rQ2U398070+RC21q
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFFbIfPWz+3JHUci9cRAkhiAJ9W9uAsruNo8Q0PBa8YFGsImKuMkgCfYeI8
ph7zLSsYZHBC769sQF+4Fek=
=vqvF
-----END PGP SIGNATURE-----

--rQ2U398070+RC21q--