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

2014-09-12 Thread Jacob Carlborg via Digitalmars-d

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


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

2014-09-12 Thread Dicebot via Digitalmars-d
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


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

2014-09-12 Thread Daniel Murphy via Digitalmars-d
H. S. Teoh via Digitalmars-d  wrote in message 
news:mailman.782.1410474234.5783.digitalmar...@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. 



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

2014-09-11 Thread H. S. Teoh via Digitalmars-d
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