Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pierre Muller <muller@cerbere.u-strasbg.fr>
To: gdb-patches@sources.redhat.com
Subject: [RFA] Add handling of Ctrl-Break for win32 native target.
Date: Mon, 04 Feb 2002 07:05:00 -0000	[thread overview]
Message-ID: <4.2.0.58.20020204155705.01b6f3b8@ics.u-strasbg.fr> (raw)



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


             reply	other threads:[~2002-02-04 15:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-04  7:05 Pierre Muller [this message]
2002-02-04  7:09 ` Eli Zaretskii
2002-02-04  7:20   ` Pierre Muller
2002-02-04  8:58     ` Christopher Faylor
2002-02-04  8:59     ` Eli Zaretskii
2002-02-04  8:52 ` Christopher Faylor
2002-02-04  9:41   ` Pierre Muller
2002-02-04 12:54     ` Christopher Faylor
2002-02-05  4:49       ` Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.2.0.58.20020204155705.01b6f3b8@ics.u-strasbg.fr \
    --to=muller@cerbere.u-strasbg.fr \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox