summaryrefslogtreecommitdiff
path: root/overlay/mgdb/gdb/winnt-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/mgdb/gdb/winnt-nat.c')
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index 16e7b3c..ff4cc68 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -990,12 +990,19 @@ static ptid_t winnt_wait(
if (!(event = winnt_wait_event(ptid)))
return null_ptid;
- if ((fskip = winnt_exception_filter_match(event))) {
+ fskip = winnt_exception_filter_match(event)
+ || (event->evtattr & __DBG_EVENT_ATTR_INTERNAL_BREAKPOINT);
+
+ if (fskip) {
if (!(process = winnt_process_record(event->syspid)))
return null_ptid;
- if (event->exception_priority)
+ if (event->evtattr & __DBG_EVENT_ATTR_INTERNAL_BREAKPOINT)
+ eresponse = __DBG_RESPONSE_CONTINUE;
+
+ else if (event->exception_priority)
eresponse = __DBG_RESPONSE_EXCEPTION_NOT_HANDLED;
+
else
eresponse = __DBG_RESPONSE_CONTINUE;