[RFC] control-c handling on Windows...

Eli Zaretskii eliz@gnu.org
Sun May 11 13:46:00 GMT 2008


> Date: Sat, 10 May 2008 11:00:10 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> 
>     void
>     quit (void)
>     {
>     #ifdef __MSDOS__
>       /* No steenking SIGINT will ever be coming our way when the
>          program is resumed.  Don't lie.  */
>       fatal ("Quit");
>     #else
>       if (job_control
>           /* If there is no terminal switching for this target, then we can't
>              possibly get screwed by the lack of job control.  */
>           || current_target.to_terminal_ours == NULL)
>         fatal ("Quit");
>       else
>         fatal ("Quit (expect signal SIGINT when the program is resumed)");
>     #endif
>     }
> 
> Not sure when __MSDOS__ is defined

It's defined in the DJGPP build of GDB.  This bogus "expect SIGINT"
message was bugging me for years, until I #ifdef'ed it away.



More information about the Gdb-patches mailing list