debugging stripped binary/library & coredump without binary

Tavis Ormandy taviso@gentoo.org
Tue Jun 12 11:11:00 GMT 2007


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



More information about the Gdb mailing list