On Sunday, 6 August 2017 at 06:20:28 UTC, Shachar Shemesh wrote:
gdb can break on function name, but cannot single step from
that point, as it claims it has no line information.
Judging by the stack trace for 1) it looks like it's not breaking
for the user provided main function (called by
Title pretty much says it all. True whether I use -g or -gc, for both
dmd and ldc2.
gdb, for some reason, does manage to show line numbers, but only sort of:
$ cat d.d
import std.stdio;
void main() {
writeln("Hello, world");
}
$ dmd -g -gc d.d
$ gdb d
GNU gdb (Ubuntu