This is the mail archive of the gdb@sources.redhat.com 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: how does gdb extract symbol table information from binary files?


> 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


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