line numbers for linux exception traces

Martin Nowak via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Aug 5 09:47:17 PDT 2015


On Wednesday, 5 August 2015 at 15:57:46 UTC, Adam D. Ruppe wrote:
> If you just download this little file:
>
> http://arsdnet.net/dcode/linetrace.d
>
> and add it to your build, when compiling in debug mode, it will 
> translate the addresses into line numbers (by simply piping out 
> to addr2line on the command line)
>
> No modification to your program is required.

There already is http://code.dlang.org/packages/backtrace-d.
And there exists even an ELF based backtrace, but I'm still 
waiting for someone to polish it for druntime.
https://issues.dlang.org/show_bug.cgi?id=11870



More information about the Digitalmars-d-announce mailing list