[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] symbol size?
From: |
David Mosberger-Tang |
Subject: |
Re: [Libunwind-devel] symbol size? |
Date: |
Tue, 27 Feb 2007 20:06:27 -0700 |
Hi Andrew,
On 2/27/07, Andrew Cagney <address@hidden> wrote:
Is it possible to get the symbol's size using libunwind?
Not really.
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/