Re: Library for OSBacktrace()?
Re: Library for OSBacktrace()?
- Subject: Re: Library for OSBacktrace()?
- From: "Sean McBride" <email@hidden>
- Date: Thu, 15 Mar 2007 17:15:22 -0400
- Organization: Rogue Research
On 3/15/07 5:08 PM, Jeffrey Johnson said:
>Hello,
>
> We have some debugging utility routines we're porting from linux that
>call backtrace(void **bt, int mx). We were encouraged when we found
>
>extern unsigned OSBacktrace(void **bt, unsigned maxAddrs)
>
> in /usr/include/libkern/OSDebug.h, but it comes up as an undefined
>symbol when we compile (we're using icc on this project, BTW).
>
>There's no man page, grepping the libraries in /usr/lib yielded no
>clues, and Googling brought up the darwin source, but no examples....
>what library do we need to link against to use OSBacktrace()?
I don't know anything about OSBacktrace, but you may want to look at the
MoreIsBetter sample code, specifically the MoreBacktrace.h file here:
<http://developer.apple.com/samplecode/MoreIsBetter/listing46.html>
Last I checked, it only supported PPC. Also, search the net/archives
for "MoreBacktrace".
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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