This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: debugging stripped binary/library & coredump without binary
- From: Tavis Ormandy <taviso at gentoo dot org>
- To: Sudhakar G <list dot sudhakar at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 12 Jun 2007 12:11:06 +0100
- Subject: Re: debugging stripped binary/library & coredump without binary
- References: <ce31d420706120352yc7fbd18h4585cb695af72525@mail.gmail.com>
On Tue, Jun 12, 2007 at 04:22:43PM +0530, Sudhakar G wrote:
> I know there is a command called
> "symbol-file" in gdb which will help in loading the symbol file. Not
> sure if it is of help. But I could not figure out how to generate
> symbol file for a program or library though I spent some time with gcc
> and ld man pages.
>
It is, use objcopy with `--only-keep-debug` to make use of it.
Thanks, Tavis.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my pgp key.
-------------------------------------------------------