[Top][All Lists]

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

Re: [Libunwind-devel] symbol size?

From: Andrew Cagney
Subject: Re: [Libunwind-devel] symbol size?
Date: Wed, 28 Feb 2007 09:30:30 -0500
User-agent: Thunderbird (X11/20070102)

David Mosberger-Tang wrote:
Hi Andrew,

On 2/27/07, Andrew Cagney <address@hidden> 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


- 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.

Mosberger Consulting LLC,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]