• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stack trace queryable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Stack trace queryable? (From: Sam Vaughan <email@hidden>)

  • Prev by Date: Re: Stack trace queryable?
  • Next by Date: Re: Stack trace queryable?
  • Previous by thread: Re: Stack trace queryable?
  • Next by thread: Re: Stack trace queryable?
  • Index(es):
    • Date
    • Thread