site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com El 04/01/2005, a las 23:27, Sam Vaughan escribió: I haven't looked at the MoreBacktrace code, but you should be able to generate backtraces pretty simply with the following code: #define MoreBTPPCGetStackPointer(result) \ __asm__ volatile("mr %0,r1" : "=r" (result)); But the code is a lot more complicated than yours. Cheers, Greg _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Thanks a lot, Sam. The MoreBacktrace sample uses the same assembly to get the stack pointer: One thing that interests me is that both implementations seem to be designed to get the stack trace of the current thread. I wonder what would be necessary to get a stack trace of all threads in a running process. This email sent to site_archiver@lists.apple.com
participants (1)
-
Greg Hurrell