This is the mail archive of the gdb-patches@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: [RFC] control-c handling on Windows...


> 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.


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