Jose,

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

On 8/10/07, Jose Flavio <[EMAIL PROTECTED]> 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


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

Reply via email to