Re: debugging stripped binary/library & coredump without binary

Tavis Ormandy
2007-06-12T11:11:24Z

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.
-------------------------------------------------------