Re: Address trace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
	You can use the binutils to get the addresses that the globals are
bound to. Addresses of locals are of course dynamic and cannot be
determined statically.

For globals:
readelf -s <<executable>>

prints out the symbol table for the executable.For variables, the
"value" field should give you the address.

regards
saurabh


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux