--debugmsg +seh patch

Ove Kaaven ovehk at ping.uio.no
Wed Jan 2 11:05:27 CST 2002


This patch is really useful whenever the app messes heavily with exception
handling...

Log:
Ove Kaaven <ovek at transgaming.com>
Made the output of --debugmsg +seh a bit more verbose.

Index: dlls/ntdll/exception.c
===================================================================
RCS file: /cvsroot/winex/wine/dlls/ntdll/exception.c,v
retrieving revision 1.1.1.9
retrieving revision 1.3
diff -u -r1.1.1.9 -r1.3
--- dlls/ntdll/exception.c	2001/12/31 10:47:11	1.1.1.9
+++ dlls/ntdll/exception.c	2001/12/31 15:12:14	1.3
@@ -170,9 +170,11 @@
 {
     PEXCEPTION_FRAME frame, dispatch, nested_frame;
     EXCEPTION_RECORD newrec;
-    DWORD res;
+    DWORD res, c;
 
-    TRACE( "code=%lx flags=%lx\n", rec->ExceptionCode, rec->ExceptionFlags );
+    TRACE( "code=%lx flags=%lx addr=%p\n", rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress );
+    for (c=0; c<rec->NumberParameters; c++) TRACE(" info[%ld]=%08lx\n", c, rec->ExceptionInformation[c]);
+    if (rec->ExceptionCode == EXCEPTION_WINE_STUB) TRACE(" stub=%s\n", (char*)rec->ExceptionInformation[1]);
 
     if (send_debug_event( rec, TRUE, context ) == DBG_CONTINUE) return;  /* continue execution */
 





More information about the wine-patches mailing list