Subject: Re: Enabling separate debug symbol support for gdb6
To: Luke Mewburn <lukem@NetBSD.org>
From: Pavel Cahyna <pavel@NetBSD.org>
List: tech-toolchain
Date: 08/02/2006 13:51:37
On Tue, Jul 18, 2006 at 02:55:20AM +1000, Luke Mewburn wrote:
> Hi folks.
> 
> gdb6 supports reading the debug symbols from separate files; see
> 
>     http://sources.redhat.com/gdb/current/onlinedocs/gdb_16.html#SEC153 
> 
> objcopy has supported this for a while with --only-keep-debug; see
> 
>    http://sourceware.org/binutils/docs-2.17/binutils/objcopy.html#objcopy
> 
> (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.

Great! Could we use this for kernels too?

Pavel