[phobos] Stack traces in druntime/phobos

Andrei Alexandrescu andrei at erdani.com
Sat Aug 28 04:09:22 PDT 2010


Yes please. Who can integrate it?

Sent by shouting through my showerhead.

On Aug 28, 2010, at 1:45 AM, 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):
> http://www.digitalmars.com/d/archives/digitalmars/D/announce/Crash_handler_with_stack_trace_16815.html
>
> I hope someone will find it useful.
> <dbg.zip>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos


More information about the phobos mailing list