www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to enable core dumps for assert() triggering?

reply mimocrocodil <4denizzz gmail.com> writes:
subj
Aug 15 2011
next sibling parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 08/16/2011 02:48 AM, mimocrocodil wrote:
 subj
try compiling to 32 bit with the -m32 flag in non-release mode. afaik the 64 bit compiler does not yet support core dumps. (if you are actually compiling to 32 bit then I don't know why you don't get a core dump and you'd have to provide more information about your compiler and OS setup.)
Aug 16 2011
parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Tuesday, August 16, 2011 18:07:45 Timon Gehr wrote:
 On 08/16/2011 02:48 AM, mimocrocodil wrote:
 subj
try compiling to 32 bit with the -m32 flag in non-release mode. afaik the 64 bit compiler does not yet support core dumps. (if you are actually compiling to 32 bit then I don't know why you don't get a core dump and you'd have to provide more information about your compiler and OS setup.)
I can get coredumps with -m64, but they don't work with gdb, so it's kind of pointless. - Jonathan M Davis
Aug 16 2011
prev sibling parent mimocrocodil <4denizzz gmail.com> writes:
to Timon Gehr:

Thanks! Yes, I am used -m64
Aug 16 2011