Subject: Enabling separate debug symbol support for gdb6
To: None <>
From: Luke Mewburn <>
List: tech-toolchain
Date: 07/18/2006 02:55:20
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi folks.

gdb6 supports reading the debug symbols from separate files; see

objcopy has supported this for a while with --only-keep-debug; see

(Yes, the gdb6 documentation is out of date and doesn't know about
objcopy --only-keep-debug ...)

I'm considering adding support to our build system to take advantage
of this functionality, this would allow us to go back to stripping
the system binaries whilst retaining the benefits of being able
to use gdb to debug the programs.

Some questions:

* Is this a good idea?

* The default globaldebugdir is: /usr/lib/debug
  I think that this should be:   /usr/libdata/debug

* Would we ship the debug files as part of the set that they're relevant to?
  Or the comp set?
  Or separate debug sets?  (eww, more sets to deal with)

* Is it worth trying to find the time to do this prior to NetBSD 4.0 ?

* Any other comments?


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.3 (NetBSD)