[PATCH 5/5] winedbg: Ignore EXCEPTION_INVALID_HANDLE.

Zebediah Figura z.figura12 at gmail.com
Mon Jul 30 14:47:56 CDT 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
While c61c33e may have been correct, it has made using winedbg extremely
annoying.

 programs/winedbg/gdbproxy.c   | 2 ++
 programs/winedbg/tgt_active.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 2d41edc..2afc6b6 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -356,6 +356,8 @@ static BOOL handle_exception(struct gdb_context* gdbctx, EXCEPTION_DEBUG_INFO* e
             ERR("Cannot set name of thread %04x\n", threadname->dwThreadID);
         return DBG_CONTINUE;
     }
+    case EXCEPTION_INVALID_HANDLE:
+        return DBG_CONTINUE;
     default:
         fprintf(stderr, "Unhandled exception code 0x%08x\n", rec->ExceptionCode);
         gdbctx->last_sig = SIGABRT;
diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c
index c5569e6..f632ca0 100644
--- a/programs/winedbg/tgt_active.c
+++ b/programs/winedbg/tgt_active.c
@@ -239,6 +239,8 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
             dbg_printf("Thread ID=%04x renamed using MS VC6 extension (name==\"%.9s\")\n",
                        pThread->tid, pThread->name);
         return DBG_CONTINUE;
+    case EXCEPTION_INVALID_HANDLE:
+        return DBG_CONTINUE;
     }
 
     if (first_chance && !is_debug && !DBG_IVAR(BreakOnFirstChance) &&
-- 
2.7.4




More information about the wine-devel mailing list