From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: DOS/Windows-specific code: maint.c Date: Thu, 10 May 2001 08:33:00 -0000 Message-id: <3AF9FB03.9040100@cygnus.com> References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> <200105081148.OAA06245@is.elta.co.il> X-SW-Source: 2001-05/msg00208.html > #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