site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.9 (X11/20071115) 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com