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: Tue, 14 Aug 2007 12:09:51 -0600

On 8/14/07, Jose Flavio <address@hidden> wrote:
> Hi David,
> I'm already working in adding the default get_function_address to other
> archs. I was in doubt about putting a macro in elfxx other to put a
> default function in dwarf. I think that the performance that you could
> get with the macro would be minimal (if the compiler works well) and
> would maintain the code better organized if a generic function would be
> used, what do you think?

My main concern wasn't performance, but ease-of-maintenance.  I don't
think it's a good idea to litter the other arches with code that's
only used on PPC64.

> The second point of my concern is that I need to change the:
> get_proc_name(..) in elfxx
> to add a new parameter: unw_addr_space_t as
> that I need to access the memory to read the table with function
> descriptors.

Hmmh, can't you pick up the function descriptors from the ELF file?
Then you shouldn't need the address_space argument.

  --david
-- 
Mosberger Consulting LLC, http://www.mosberger-consulting.com/




reply via email to

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