aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2002-02-05 08:04:22 +0000
committerPierre Muller <muller@sourceware.org>2002-02-05 08:04:22 +0000
commit5b421780f1701a934bbd9110beac5a5890bfc72f (patch)
treeaa110732d41aad7e1900f18b5671554b66294f73
parent126730bd1c158246985950ba06169439decab932 (diff)
downloadgdb-5b421780f1701a934bbd9110beac5a5890bfc72f.zip
gdb-5b421780f1701a934bbd9110beac5a5890bfc72f.tar.gz
gdb-5b421780f1701a934bbd9110beac5a5890bfc72f.tar.bz2
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
win32-nat.c (handle_exception): Handle Ctrl-Break exception.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/win32-nat.c6
-rw-r--r--gdb/windows-nat.c6
3 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7739c4b..ce826dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,6 @@
+2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
+ * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
+
2002-02-04 Andrew Cagney <ac131313@redhat.com>
* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index f689576..fe1c01c 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -867,6 +867,12 @@ handle_exception (struct target_waitstatus *ourstatus)
ourstatus->value.sig = TARGET_SIGNAL_INT;
last_sig = SIGINT; /* FIXME - should check pass state */
break;
+ case DBG_CONTROL_BREAK:
+ DEBUG_EXCEPT (("gdb: Target exception CONTROL_BREAK at 0x%08lx\n",
+ (DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress));
+ ourstatus->value.sig = TARGET_SIGNAL_INT;
+ last_sig = SIGINT; /* FIXME - should check pass state */
+ break;
case EXCEPTION_SINGLE_STEP:
DEBUG_EXCEPT (("gdb: Target exception SINGLE_STEP at 0x%08lx\n",
(DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress));
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index f689576..fe1c01c 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -867,6 +867,12 @@ handle_exception (struct target_waitstatus *ourstatus)
ourstatus->value.sig = TARGET_SIGNAL_INT;
last_sig = SIGINT; /* FIXME - should check pass state */
break;
+ case DBG_CONTROL_BREAK:
+ DEBUG_EXCEPT (("gdb: Target exception CONTROL_BREAK at 0x%08lx\n",
+ (DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress));
+ ourstatus->value.sig = TARGET_SIGNAL_INT;
+ last_sig = SIGINT; /* FIXME - should check pass state */
+ break;
case EXCEPTION_SINGLE_STEP:
DEBUG_EXCEPT (("gdb: Target exception SINGLE_STEP at 0x%08lx\n",
(DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress));