Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatic backtrace in userspace application...



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.