www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to build dmd with debugging symbols in Linux/x86_64?

reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
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

-- 
Dogs have owners ... cats have staff. -- Krista Casada
Sep 11 2014
next sibling parent Jacob Carlborg <doob me.com> writes:
On 12/09/14 00:22, H. S. Teoh via Digitalmars-d wrote:

 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.)
If you only need debugging symbols, then don't pass DEBUG=1. Just add the "-g -g3" to the command line in the makefile. -- /Jacob Carlborg
Sep 11 2014
prev sibling next sibling parent "Dicebot" <public dicebot.lv> writes:
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
Sep 12 2014
prev sibling parent "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"H. S. Teoh via Digitalmars-d"  wrote in message 
news:mailman.782.1410474234.5783.digitalmars-d puremagic.com...

 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.)
Deleting the unittests in checkedint should do it.
Sep 12 2014