This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Core dumps


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]