[Top][All Lists]
[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
- [Libunwind-devel] Function Address, Jose Flavio, 2007/08/10
- Re: [Libunwind-devel] Function Address,
David Mosberger-Tang <=
- Re: [Libunwind-devel] Function Address, Jose Flavio, 2007/08/14
- Re: [Libunwind-devel] Function Address, David Mosberger-Tang, 2007/08/14
- Re: [Libunwind-devel] Function Address, Jose Flavio, 2007/08/14
- Re: [Libunwind-devel] Function Address, Jose Flavio Aguilar Paulino, 2007/08/15
- Re: [Libunwind-devel] Function Address, David Mosberger-Tang, 2007/08/15
- Re: [Libunwind-devel] Function Address, Jose Flavio Aguilar Paulino, 2007/08/16
- Re: [Libunwind-devel] Function Address, Jose Flavio Aguilar Paulino, 2007/08/16
- Re: [Libunwind-devel] Function Address, David Mosberger-Tang, 2007/08/16