digitalmars.D - How to build dmd with debugging symbols in Linux/x86_64?
- H. S. Teoh via Digitalmars-d (12/12) Sep 11 2014 The recent introduction of root/checkedint.c has made it impossible to
- Jacob Carlborg (5/8) Sep 11 2014 If you only need debugging symbols, then don't pass DEBUG=1. Just add
- Dicebot (4/18) Sep 12 2014 I am always too lazy to figure out -DDEBUG and just modify CFLAGS
- Daniel Murphy (3/12) Sep 12 2014 Deleting the unittests in checkedint should do it.
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
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
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.) TI am always too lazy to figure out -DDEBUG and just modify CFLAGS in posix.mak to include -g
Sep 12 2014
"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