Core dumps

Russell Shaw rjshaw@netspace.net.au
Wed Jan 11 01:52:00 GMT 2006


Larry Martell wrote:
> --- Russell Shaw <rjshaw@netspace.net.au> wrote:
> 
>>What's the best way to force a core-dump from my own
>>code?
>>(I couldn't find much on the net)
> 
> Doesn't a SIGABRT (kill -6) force a core dump?

I put this in my own code, but it still doesn't make a
core file:

   printf("Aborting...\n");
   raise(6);

I'm using debian-sid on a PC.



More information about the Gdb mailing list