aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2009-09-21 22:37:59 +0000
committerPierre Muller <muller@sourceware.org>2009-09-21 22:37:59 +0000
commitbb0613a5d5d424407828ac19d0908b191b489f14 (patch)
tree047922e68247a60af32abe7fe93a81562e7f008a /gdb/windows-nat.c
parent76ba998616ce00446311fe97558f44397493b3e3 (diff)
downloadgdb-bb0613a5d5d424407828ac19d0908b191b489f14.zip
gdb-bb0613a5d5d424407828ac19d0908b191b489f14.tar.gz
gdb-bb0613a5d5d424407828ac19d0908b191b489f14.tar.bz2
* windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index c041c42..d8c2599 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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