Any ways to get addr2line working with DMD? works fine with GDC
ryuukk_
ryuukk.dev at gmail.com
Fri Mar 17 21:25:36 UTC 2023
On Friday, 17 March 2023 at 20:53:07 UTC, WB wrote:
> On Thursday, 16 March 2023 at 22:07:04 UTC, ryuukk_ wrote:
>> Hello,
>>
>>
>> The problem is when i compile with DMD i get:
>>
>> ```
>> ??:0
>> ```
>>
>> When i compile it with GDC i get proper file + line
>>
>>
>> What does GDC do different than DMD?
>>
>> Is there a way to get the same result as GDC with DMD?
>>
>> Thanks
>
> Did you compile with `-g`? You can also play with `-gs`, and
> `-gdwarf=5`. In the past there was also `-gc` option, but it
> should be avoided.
Yes i did compile with -g, i should have mentioned it in the post
I will try with `-gs` and `-gdward=5`
More information about the Digitalmars-d-learn
mailing list