libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] Function Address


From: David Mosberger-Tang
Subject: Re: [Libunwind-devel] Function Address
Date: Fri, 10 Aug 2007 10:43:45 -0600

Jose,

Thanks to Andreas's explanation, I understand the problem better now.

On 8/10/07, Jose Flavio <address@hidden> wrote:
> Hi people,
>
> Im looking into solving the problems in getting function address.
> Im facing problems in ptrace interface, because:
> _UPT_get_proc_name(..) calls
> elfXX_get_proc_name(..) which calls
> elfXX_lookup_symbol(..)
>
> the problem is that I dont have arch specific method in this chain to
> resolve the function symbol, because:
> sym->st_value
>
> has a address in TOC, so I cant rely in finding the Instruction Pointer
> the the sym->st_value (I need to translate that first).
>
> first I would like to know if you are understanding the problem!

So, let's see: for get_proc_name you need to look up the
function-descriptor that covers the  current IP and then use that
symbol, right?  It seems to me that elfXX_get_proc_name() needs to do
whatever magic is needed for PPC64.

  --david




reply via email to

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