Stack Trace format

Szabo Bogdan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 30 13:43:43 PDT 2017


On Sunday, 30 April 2017 at 20:31:09 UTC, Szabo Bogdan wrote:
> Hi,
>
> I noticed that on different platforms the 
> `object.Throwable.TraceInfo` has different formats. A program 
> compiled on osx with ldc2 has all the TraceInfo empty... Why?
>
> I want to parse those strings or somehow iterate trough all the 
> stack elements, but if I get a different format on different 
> platforms it's not that easy to determine at what position in 
> the string is the address or the function name.
>
> I would appreciate if anyone have an idea of how I can do this 
> without a big headache...
>
> Thanks!

Actually I found the `defaultTraceHandler` here:

https://github.com/dlang/druntime/blob/7caaf7cbb699a2a1944b2ac087c3b07d23db6802/src/core/runtime.d#L534


More information about the Digitalmars-d-learn mailing list