]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
authorPierre Muller <muller@sourceware.org>
Mon, 21 Sep 2009 22:37:59 +0000 (22:37 +0000)
committerPierre Muller <muller@sourceware.org>
Mon, 21 Sep 2009 22:37:59 +0000 (22:37 +0000)
gdb/ChangeLog
gdb/windows-nat.c

index 63f0ca4ced52eda38db2bd3e42eb4a4819b2f5b2..2687d38292a0cbd9efa333d65816141c6bc982d9 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-22  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
+
 2009-09-18  Keith Seitz  <keiths@redhat.com>
 
        * cp-support.h (cp_validate_operator): Declare new function.
index c041c429e91769127952bf521362bfb655cb4dad..d8c2599b24475cda2923589796a0e8c027b109db 100644 (file)
@@ -1289,8 +1289,8 @@ ctrl_c_handler (DWORD event_type)
 {
   const int attach_flag = current_inferior ()->attach_flag;
 
-  /* Only handle Ctrl-C event.  Ignore others.  */
-  if (event_type != CTRL_C_EVENT)
+  /* Only handle Ctrl-C and Ctrl-Break events.  Ignore others.  */
+  if (event_type != CTRL_C_EVENT && event_type != CTRL_BREAK_EVENT)
     return FALSE;
 
   /* If the inferior and the debugger share the same console, do nothing as