Debugging

Leandro Lucarella luca at llucax.com.ar
Tue Jul 13 15:17:47 PDT 2010


Graham St Jack, el 13 de julio a las 21:47 me escribiste:
> > As you should be familiar with. You can get the stack trace form GDB if
> > you enable core dumps: $ ulimit -c 5000 && dmd -gc test.d && ./test &&
> > gdb ./test core
> 
> I didn't know about that, thanks. It looks like a more convenient way of 
> debugging segfaults than running the program in gdb directly. I will give 
> it a go.

``ulimit -c 5000`` will not generate a core dump if the dump is bigger
than 5000 bytes (or kb?), if you want no limits, use ``ulimit -c
unlimited`` instead.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Y tuve amores, que fue uno sólo
El que me dejó de a pie y me enseñó todo...


More information about the Digitalmars-d mailing list