Re: dladdr
Re: dladdr
- Subject: Re: dladdr
- From: Peter O'Gorman <email@hidden>
- Date: Sat, 29 Mar 2008 01:35:45 -0500
James W.Walker wrote:
>
> On Mar 26, 2008, at 10:17 PM, James W. Walker wrote:
>
>> I tried using backtrace_symbols from a framework of mine, and the
>> function names were wrong. They were names that were probably in the
>> framework somewhere, but not code that was actually being used. This
>> was a debug build, full debug symbols, not optimized, not stripped. I
>> tried changing the debug info format from Dwarf to Stabs and it made
>> no difference. What might I be missing?
>
> Having received no response to that question, I looked a little deeper.
> I see that the key is dladdr, which backtrace_symbols uses to get the
> symbols. And I find that dladdr starts working the way I expect when I
> uncheck the "Symbols Hidden by Default" code generation option for gcc.
> So, is that just the way it works - that when the dladdr docs say it
> finds the "nearest runtime symbol", that means exported symbol?
Yes, it only finds global symbols.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden