How to build dmd with debugging symbols in Linux/x86_64?

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 00:34:43 PDT 2014


On Thursday, 11 September 2014 at 22:23:54 UTC, H. S. Teoh via 
Digitalmars-d wrote:
> The recent introduction of root/checkedint.c has made it 
> impossible to
> build DMD with debugging symbols on Linux/x86_64:
>
> 	https://issues.dlang.org/show_bug.cgi?id=13460
>
> This has made it rather annoying to debug dmd segfaults, since 
> the only
> build that works doesn't have any debugging symbols included.
>
> :-(
>
> Any ideas how to work around this breakage? (Short of hacking
> root/checkedint.c, which is not particularly appealing since 
> it's
> supposed to be a direct translation of the D version of 
> checkedint.)
>
>
> T

I am always too lazy to figure out -DDEBUG and just modify CFLAGS 
in posix.mak to include -g


More information about the Digitalmars-d mailing list