Debugging LDC executables

Christian Kamm kamm-incasoftware at removethis.de
Sat May 30 15:07:36 PDT 2009


Timo Gransch wrote:
> Breakpoint 1, D main (args={"/home/timo/tmp/testd/test"}) at test.d:5
> 5	    for (int i = 0; i < args.length; i++)
> Current language:  auto; currently d
> (gdb) step
> 7	        Cout(args[i] ~ "\n");
> (gdb) step
> 0x00000000004052e0 in _d_newarrayvT ()
> Current language:  auto; currently asm
> (gdb) step
> Single stepping until exit from function _d_newarrayvT,
> which has no line number information.
> 0x0000000000409ef0 in typeinfo.ti_Ag.TypeInfo_Aa.next() ()

Well, that's what you would expect if you step into that line. Use 'next' to 
step over the runtime function calls hidden in that line.

Regards,
Christian



More information about the Digitalmars-d-debugger mailing list