DOS/Windows-specific code: maint.c
Andrew Cagney
ac131313@cygnus.com
Thu May 10 08:33:00 GMT 2001
> #ifndef _WIN32
> /* ARGSUSED */
> static void
> maintenance_dump_me (char *args, int from_tty)
> {
> if (query ("Should GDB dump core? "))
> {
> #ifdef __DJGPP__
> /* SIGQUIT by default is ignored, so use SIGABRT instead. */
> signal (SIGABRT, SIG_DFL);
> kill (getpid (), SIGABRT);
> #else
> signal (SIGQUIT, SIG_DFL);
> kill (getpid (), SIGQUIT);
> #endif
> }
> }
> #endif
I think this is a bug in DJGPP :-)
On unix, your program gets a SIGQUIT when you type ^\ and it is
expected to dump core. SIGABRT is what you get when abort() is
called.
The other option is to just call abort() is that always guarenteed to
dump core?
Andrew
More information about the Gdb
mailing list