Debugging D code with GDB

Eduard Staniloiu edi33416 at gmail.com
Thu Dec 2 16:53:05 UTC 2021


On Tuesday, 30 November 2021 at 09:01:38 UTC, Iain Buclaw wrote:
> On Monday, 29 November 2021 at 14:48:21 UTC, Luís Ferreira 
> wrote:
>> [...]
>
> Indeed, gdb assumes calling convention is same as default for 
> target (actually its been years since I last looked, but are 
> calling conventions tags in dwarf? Does gdb know about 
> functions with thiscall or regparm attributes?)
>
> Another thing on the gdb side, it is currently missing D 
> language support for overloads, so that the correct function 
> would be picked when you call e.g std.math.sin(1f).

So currently the workaround is they way to go.

Thank you all for your help and suggestions!


More information about the Digitalmars-d-learn mailing list