This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Disassemble binary with Debug info
- From: David Daney <ddaney at avtrex dot com>
- To: Wombat <wombat23 at ihatespam dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Feb 2008 07:47:26 -0800
- Subject: Re: Disassemble binary with Debug info
- References: <47B1B7C3.7010600@ihatespam.de>
Wombat wrote:
Hello
I recently recovered an old ELF binary of mine which had been compiled
(probably) with GCC2. Unfortunetally, I do not have the source code
anymore, but the binary contains the debug information.Using objdump
--debugging, I could get all my typedefs, however I'd like to view the
the whole code. I would be very happy if anyone could point me to a
Disassembler that uses the debug information to name variables,
especially variables inside structs. objdump --disassemble does not
seem to that.
So I'm kind of stuck, any help is welcome
Thank you
If it really contains full debugging information, you can load it into
gdb and use ptype and friends to print the definitions of all types.
David Daney