Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: how does gdb extract symbol table information from binary  files?
@ 2004-07-16 17:59 Ramana Radhakrishnan
  2004-07-16 20:08 ` Charlls Quarra
  0 siblings, 1 reply; 3+ messages in thread
From: Ramana Radhakrishnan @ 2004-07-16 17:59 UTC (permalink / raw)
  To: Rohit Grover; +Cc: gdb


> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how does gdb extract symbol table information from binary      files?
  2004-07-16 17:59 how does gdb extract symbol table information from binary files? Ramana Radhakrishnan
@ 2004-07-16 20:08 ` Charlls Quarra
  0 siblings, 0 replies; 3+ messages in thread
From: Charlls Quarra @ 2004-07-16 20:08 UTC (permalink / raw)
  To: gdb

--- Ramana Radhakrishnan
<ramana.radhakrishnan@codito.com> escribió: > 
>
> 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.

 but i assume they want to know how the debugger gets
type/mangled symbol information, so they can use
something similar during runtime, avoiding stuff like
RTTI (maybe a fixed offset from the function address
there is the symbol as a ascii string?)

 cheers



	
	
		
___________________________________________________________
100mb gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar


^ permalink raw reply	[flat|nested] 3+ messages in thread

* how does gdb extract symbol table information from binary files?
@ 2004-07-15 23:43 Rohit Grover
  0 siblings, 0 replies; 3+ messages in thread
From: Rohit Grover @ 2004-07-15 23:43 UTC (permalink / raw)
  To: gdb

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.

thanks,
Rohit.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-16 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16 17:59 how does gdb extract symbol table information from binary files? Ramana Radhakrishnan
2004-07-16 20:08 ` Charlls Quarra
  -- strict thread matches above, loose matches on Subject: below --
2004-07-15 23:43 Rohit Grover

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox