[phobos] Stack traces in druntime/phobos
Denis
2korden at gmail.com
Sat Sep 18 18:56:54 PDT 2010
I've made an attempt to intergrate stack tracer into druntime,
modified runtime.d is attached to this message.
It also relies on codeview.d (which I placed into core.sys.windows
package because it is Windows specific). Strictly speaking, it isn't
mandatory for stack traces to work and I I can get rid of it if you
believe it doesn't belong to druntime, but it adds module names and
line numbers to stack trace (which I believe is a good thing to have).
Symbol names are extracted from a dmd-generated map file. Compile with
-g -map for the best trace info.
It does quite a few of memory allocations, so generating call-stack
for an OutOfMemory exception may result in a stack overflow. It's an
issue I can fix, but it's far from being a trivial one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changes.zip
Type: application/zip
Size: 19579 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100919/c9871650/attachment-0001.zip>
More information about the phobos
mailing list