Re: Removing old symbols when debugging code that relocates itself
Shahab Vahedi via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Wolfgang, On Wed, May 25, 2022 at 11:14:28PM +0200, Wolfgang Wallner via Gdb wrote: > It seems I can only remove the symbols that I have added with > add-symbol-file, but not the initial ones ... Maybe you could extract the symbol file [1] and then strip it away from the binary [2]. This way, you have to use "add-symbol-file" to add it in different stages and according to what you say you should be able to remove it after each adding. Cheers, Shahab [1] $ objcopy --only-keep-debug uboot.bin uboot.sym [2] $ objcopy --strip-all uboot.bin uboot.strp