Re: dladdr/backtrace_symbols return incorrect symbol names
Re: dladdr/backtrace_symbols return incorrect symbol names
- Subject: Re: dladdr/backtrace_symbols return incorrect symbol names
- From: David Elliott <email@hidden>
- Date: Tue, 24 Mar 2009 20:23:42 -0400
Ethan,
If the overhead of atos invocation is too high, why not popen atos
once in "r+" mode with no address arguments? Using the bidirectional
pipe write an address and a line feed then read a symbol and a
linefeed as many times as you wish. This is described in its manpage
as "interactive" mode.
-Dave
On Mar 24, 2009, at 7:21 PM, Ethan Tira-Thompson wrote:
C. Open 'atos' source or publicize the "symbolication" framework so
we can emulate/customize atos functionality. popen()'ing a call to
atos is kind of ugly, but of bigger concern is that atos does some
kind of preprocessing of the entire symbol table, and for a large
project like ours this takes ~10 seconds per launch of atos. So
even if we have to stick with calling out to atos, it would be more
usable if atos could be set to only process what was needed for the
trace at hand instead of running through the entire symbol table
right off the bat.
_______________________________________________
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