[phobos] Stack traces in druntime/phobos
braddr at puremagic.com
Sat Aug 28 11:59:25 PDT 2010
Don't forget, there's still a lot of good info and some todo's in bug 1001, the
one all about this topic.
On 8/28/2010 7:12 AM, Sean Kelly wrote:
> Awesome, I'll check it out.
> Sent from my iPhone
> On Aug 27, 2010, at 11:45 PM, Denis <2korden at gmail.com> wrote:
>> Hi, guys!
>> I've been told that there was some work on stack tracing is going on,
>> so I'd like to share some of the code that I use in ddmd to print call
>> stack. It can be used like this:
>> CallStackInfo info = new CallStackInfo();
>> info.dump(); // prints the call stack to stdout
>> It can also be used as an unhandled exception handler (there is a
>> helper function called CrashHandlerInit).
>> Windows only, but it has some extensibility potential.
>> It doesn't rely on anything but druntime, and should work on both 32
>> and 64 bits.
>> Most of the code is written by Jeremie Pelletier, and put into Public
>> Domain. Here is his original announcement (about a year old):
>> I hope someone will find it useful.
More information about the phobos