From c2b5cb35d2cfdedc7e3592fc30829ba924602f17 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 7 Aug 2001 19:32:14 +0000 Subject: [PATCH] Now tries to print the symbol name of a crst when it times out. --- debugger/winedbg.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/debugger/winedbg.c b/debugger/winedbg.c index c7cbbab9b1e..f157c0124b7 100644 --- a/debugger/winedbg.c +++ b/debugger/winedbg.c @@ -466,8 +466,15 @@ static BOOL DEBUG_HandleException(EXCEPTION_RECORD *rec, BOOL first_chance, BOOL DEBUG_Printf(DBG_CHN_MESG, "^C"); break; case EXCEPTION_CRITICAL_SECTION_WAIT: - DEBUG_Printf(DBG_CHN_MESG, "critical section %08lx wait failed", - rec->ExceptionInformation[0]); + { + DBG_ADDR addr; + + addr.seg = 0; + addr.off = rec->ExceptionInformation[0]; + + DEBUG_Printf(DBG_CHN_MESG, "wait failed on critical section "); + DEBUG_PrintAddress(&addr, DEBUG_CurrThread->dbg_mode, FALSE); + } if (!DBG_IVAR(BreakOnCritSectTimeOut)) { DEBUG_Printf(DBG_CHN_MESG, "\n");