<div dir="ltr">Ah nice. That worked. Thanks!<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-08 9:25 GMT+02:00 JR via Digitalmars-d-learn <span dir="ltr"><<a href="mailto:digitalmars-d-learn@puremagic.com" target="_blank">digitalmars-d-learn@puremagic.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tuesday, 8 July 2014 at 07:11:26 UTC, Stephan Schiffels wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am using dmd with version: DMD64 D Compiler v2.065-devel-db2a73d<br>
<br>
My program throws a custom exception with a custom error message at some point. The stack trace (below) is very uninformative. Is there a way to output the function names of each position in the stack?<br>
<br>
I already compile using -g and I also tried -gc and -gs and all three of them together. I also tried -debug. The stack trace looks always like this:<br>
<br>
popGenFunc.<u></u>IllegalParametersException@<u></u>popGenFunc.d(556): gamma out of range<br>
----------------<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x42752b]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x423ee7]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x404bab]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x402d7e]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x4028d6]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x433cc4]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x433c1e]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x433c84]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x433c1e]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x433b9f]<br>
/nfs/users/nfs_s/ss27/<u></u>Projects/hfit/build/hfit() [0x421121]<br>
/lib/x86_64-linux-gnu/libc.so.<u></u>6(__libc_start_main+0xed) [0x7ffe8440e76d]<br>
<br>
Thanks for your help,<br>
Stephan<br>
</blockquote>
<br></div></div>
Tried building with -L--export-dynamic?<br>
</blockquote></div><br></div>