RE: [RFA] windows-nat.c: Handle CTRL_BREAK_EVENT in ctrl_c_handler

Pierre Muller
2009-09-29T07:29:43Z

Could we apply both
the patch to windows-nat.c and to docs to branch
or is it too late?

Pierre

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Eli Zaretskii
> Envoyé : Saturday, September 26, 2009 6:51 PM
> À : Pierre Muller
> Cc : gdb-patches@sourceware.org
> Objet : Re: [RFA] windows-nat.c: Handle CTRL_BREAK_EVENT in
> ctrl_c_handler
>
> > Date: Tue, 22 Sep 2009 20:56:43 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: gdb-patches@sourceware.org
> >
> > Your text is mostly okay, but it needs to use a different markup for
> > the Ctrl-C etc.
> >
> > I will fix it and install it in a couple of days.
>
> Done. Here's what I committed:
>
> 2009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * gdb.texinfo (Cygwin Native): Mention support for Ctrl-BREAK.
>
> Index: gdb.texinfo
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> retrieving revision 1.628
> diff -u -r1.628 gdb.texinfo
> --- gdb.texinfo 21 Sep 2009 12:48:36 -0000 1.628
> +++ gdb.texinfo 26 Sep 2009 16:45:54 -0000
> @@ -15900,10 +15900,20 @@
> @cindex Cygwin-specific commands
>
> @value{GDBN} supports native debugging of MS Windows programs,
> including
> -DLLs with and without symbolic debugging information. There are
> various
> -additional Cygwin-specific commands, described in this section.
> -Working with DLLs that have no debugging symbols is described in
> -@ref{Non-debug DLL Symbols}.
> +DLLs with and without symbolic debugging information.
> +
> +@cindex Ctrl-BREAK, MS-Windows
> +@cindex interrupt debuggee on MS-Windows
> +MS-Windows programs that call @code{SetConsoleMode} to switch off the
> +special meaning of the @samp{Ctrl-C} keystroke cannot be interrupted
> +by typing @kbd{C-c}. For this reason, @value{GDBN} on MS-Windows
> +supports @kbd{C-@key{BREAK}} as an alternative interrupt key
> +sequence, which can be used to interrupt the debuggee even if it
> +ignores @kbd{C-c}.
> +
> +There are various additional Cygwin-specific commands, described in
> +this section. Working with DLLs that have no debugging symbols is
> +described in @ref{Non-debug DLL Symbols}.
>
> @table @code
> @kindex info w32