This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debugging stripped binary/library & coredump without binary


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]