From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7346 invoked by alias); 4 Feb 2002 15:05:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7263 invoked from network); 4 Feb 2002 15:05:15 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.7) by sources.redhat.com with SMTP; 4 Feb 2002 15:05:15 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (8.9.3/8.8.7) with ESMTP id QAA03927 for ; Mon, 4 Feb 2002 16:05:11 +0100 Message-Id: <4.2.0.58.20020204155705.01b6f3b8@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 04 Feb 2002 07:05:00 -0000 To: gdb-patches@sources.redhat.com From: Pierre Muller Subject: [RFA] Add handling of Ctrl-Break for win32 native target. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2002-02/txt/msg00070.txt.bz2 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 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