Programmatic backtrace in userspace application...
Programmatic backtrace in userspace application...
- Subject: Programmatic backtrace in userspace application...
- From: Shawn Erickson <email@hidden>
- Date: Wed, 14 Dec 2005 08:50:38 -0800
I am looking for a simple way to log a backtrace to help me understand
runtime callers of some code that I may have to modify (based on who
is calling it, etc.). I found the following source code example but
before I spend time pulling it apart and putting it back together so I
can use it in my situation... I have a couple of questions.
<http://developer.apple.com/samplecode/MoreIsBetter/listing41.html>
1) Does the system (10.4 and later) provide a backtrace logging
facility for MACHO binaries that can be called during runtime in an
arbitrary thread? (without faulting the application)
2) If not then is the MoreBacktrace.c code still correct enough for
PowerPC based systems using 10.4 and ok to use with gcc 3.3 / 4.0 C++
compiled code?
-Shawn
_______________________________________________
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