This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: how does gdb extract symbol table information from binary files?
- From: "Ramana Radhakrishnan" <ramana dot radhakrishnan at codito dot com>
- To: "Rohit Grover" <rgrover at panasas dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 16 Jul 2004 23:42:45 +0530 (IST)
- Subject: Re: how does gdb extract symbol table information from binary files?
- Reply-to: ramana dot radhakrishnan at codito dot com
> Hello,
>
> Could someone please help me understand how gdb fishes symbol table
> information when asked to print a struct value? I tried working my way
> down print_command_1(), but didn't succeed.
Or do you mean type information ? The symbol information can minimally be
gleaned from the ELF headers. The type information and the association of
a variable / address with a type would come from the debug info in
whatever form that might be.
cheers
Ramana
----
Ramana Radhakrishnan
GNU Tools
(codito ergo sum) www.codito.com