Re: Stack trace queryable?
Re: Stack trace queryable?
- Subject: Re: Stack trace queryable?
- From: Greg Hurrell <email@hidden>
- Date: Wed, 5 Jan 2005 19:36:31 +0100
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:
Thanks a lot, Sam. The MoreBacktrace sample uses the same assembly to
get the stack pointer:
#define MoreBTPPCGetStackPointer(result) \
__asm__ volatile("mr %0,r1" : "=r" (result));
But the code is a lot more complicated than yours.
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.
Cheers,
Greg
_______________________________________________
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