David Mosberger-Tang wrote:
Hi Andrew,

On 2/27/07, Andrew Cagney <[EMAIL PROTECTED]> wrote:
Is it possible to get the symbol's size using libunwind?

Not really.

How should this be added? The obvious change - modify unw_get_proc_name's signature to return start/size would be abi breaking.


Grubbing through the sources it looks like:

- unw_get_proc_name returns the offset from the cursor address back to
the symbol (giving the symbol's address) but not the symbol's size

Yup.

- unw_get_proc_info returns a start_ip and end_ip but that looks to be
either the address range that the unwind applies to, or a guess at the
size based on the next symbol's address

Yes, the info returned here is supplied to apply to a "procedure"
which for unwinding-purposes is simply a contiguous address range
which may or may not correspond to a function.

 --david
--
Mosberger Consulting LLC, http://www.mosberger-consulting.com/



_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to