Re: how does gdb extract symbol table information from binary files?

Ramana Radhakrishnan
2004-07-16T17:57:23Z

> 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