From c34b79ce43eccea2c9543fc7283c9545519ea897 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 9 Jul 2004 19:25:59 +0000 Subject: [PATCH] Output X11 protocol errors before breaking into debugger. --- dlls/x11drv/x11drv_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/x11drv/x11drv_main.c b/dlls/x11drv/x11drv_main.c index 86cf3eedd64..5e4ec868613 100644 --- a/dlls/x11drv/x11drv_main.c +++ b/dlls/x11drv/x11drv_main.c @@ -185,7 +185,12 @@ static int error_handler( Display *display, XErrorEvent *error_evt ) error_evt->error_code, error_evt->request_code ); return 0; } - if (synchronous) DebugBreak(); /* force an entry in the debugger */ + if (synchronous) + { + ERR( "X protocol error: serial=%ld, request_code=%d - breaking into debugger\n", + error_evt->serial, error_evt->request_code ); + DebugBreak(); /* force an entry in the debugger */ + } old_error_handler( display, error_evt ); return 0; }