Re: Library for OSBacktrace()?
Re: Library for OSBacktrace()?
- Subject: Re: Library for OSBacktrace()?
- From: Rob McKeever <email@hidden>
- Date: Thu, 15 Mar 2007 16:17:12 -0700
Unfortunately, OSBacktrace is part of the kernel. You can link
against it if you are writing a kernel extension, but I don't think
you are. For the curious, you can get the source for it from the xnu
project in Darwin: xnu/libkern/gen/OSDebug.cpp. I did a quick scan
and didn't see any obvious equivalent for userspace that is part of a
standard framework.
-Rob
--
Rob McKeever, email@hidden
Developer Technical Support, CoreOS/Hardware
Apple Computer
--------------------------------
WWDC 2007 • June 11-15 • Moscone West • San Francisco, CA
http://developer.apple.com/wwdc/
On Mar 15, 2007, at 2:08 PM, Jeffrey Johnson wrote:
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()?
Thanks
Jeffrey Johnson
Macintosh Development
Wavefunction, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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