www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD Callstacks

reply =?UTF-8?B?TcOhcmNpbw==?= Martins <marcioapm gmail.com> writes:
What is everyone doing to get proper file name and line number 
info for callstacks with DMD?

addr2line just gives me ??:0
Oct 23 2017
next sibling parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins wrote:
 What is everyone doing to get proper file name and line number 
 info for callstacks with DMD?

 addr2line just gives me ??:0
What OS, etc?
Oct 23 2017
parent =?UTF-8?B?TcOhcmNpbw==?= Martins <marcioapm gmail.com> writes:
On Monday, 23 October 2017 at 12:54:33 UTC, Nicholas Wilson wrote:
 On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins 
 wrote:
 What is everyone doing to get proper file name and line number 
 info for callstacks with DMD?

 addr2line just gives me ??:0
What OS, etc?
Linux 64-bit (Ubuntu 16) DMD64 2.076.1
Oct 23 2017
prev sibling parent reply abad <abad.flt gmail.com> writes:
On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins wrote:
 What is everyone doing to get proper file name and line number 
 info for callstacks with DMD?

 addr2line just gives me ??:0
You could try compiling with the -debug-switch. Of course if this turns out to be the fix, it doesn't help with std code.
Oct 23 2017
parent user1234 <user1234 12.nl> writes:
On Tuesday, 24 October 2017 at 06:49:37 UTC, abad wrote:
 On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins 
 wrote:
 What is everyone doing to get proper file name and line number 
 info for callstacks with DMD?

 addr2line just gives me ??:0
You could try compiling with the -debug-switch. Of course if this turns out to be the fix, it doesn't help with std code.
"-debug" activates the debug condition. To get file and line it's "-g" (generate debug infos), although this won't have any effect for phobos since the static library is already compiled.
Oct 24 2017