This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Add handling of Ctrl-Break for win32 native target.
- From: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 04 Feb 2002 16:04:47 +0100
- Subject: [RFA] Add handling of Ctrl-Break for win32 native target.
Ctrl-Break exception is not handled by
current win32-nat.c code.
The following patch fixes this.
Pending behind this patch is another one that tries to
handle the problem of passing the exception down to the debuggee or not
depending on pass state .
(Problem signaled by the several FIXME in handle_exception).
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
win32-nat.c (handle_exception): Handle Ctrl-Break exception.
Index: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.44
diff -u -r1.44 win32-nat.c
--- win32-nat.c 2002/02/04 11:00:05 1.44
+++ win32-nat.c 2002/02/04 14:57:24
@@ -867,6 +867,12 @@
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));
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99