Output X11 protocol errors before breaking into debugger.

This commit is contained in:
Mike Hearn 2004-07-09 19:25:59 +00:00 committed by Alexandre Julliard
parent f66807f248
commit c34b79ce43
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}