Debugging LDC executables
Timo Gransch
timo.gransch at web.de
Mon May 25 13:16:59 PDT 2009
Robert Clipsham schrieb:
> Another solution would be to compile the runtime
> without debug information, then gdb will use _Dmain anyway, as it is the
> first point it encounters debug info (This is probably why I don't have
> this issue, my runtime is compiled in release mode).
Thanks a lot for your help, Robert.
I tried to compile ldc and the runtime (checked out from trunk) in
release mode, too, but it seems that I did something wrong.
In the ccmake interface, I set CMAKE_BUILD_TYPE to Release and removed
the -g switch from D_FLAGS (leaving -w;-d). After building, I compiled
my test programm using
ldmd -g -debug test.d
When running list in gdb, I got
(gdb) list
1 ../sysdeps/x86_64/elf/start.S: No such file or directory.
in ../sysdeps/x86_64/elf/start.S
When leaving the -g switch in D_FLAGS, list in gdb will show me the
contents of dmain2.d again.
Do I have to change any other configuration flags?
Best regards,
Timo
More information about the Digitalmars-d-debugger
mailing list