Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
October 23, 2017 DMD Callstacks | ||||
---|---|---|---|---|
| ||||
What is everyone doing to get proper file name and line number info for callstacks with DMD? addr2line just gives me ??:0 |
October 23, 2017 Re: DMD Callstacks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Martins | 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?
|
October 23, 2017 Re: DMD Callstacks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nicholas Wilson | 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
|
October 24, 2017 Re: DMD Callstacks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Martins | 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.
|
October 25, 2017 Re: DMD Callstacks | ||||
---|---|---|---|---|
| ||||
Posted in reply to abad | 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.
|
Copyright © 1999-2021 by the D Language Foundation