diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c index 83ad5ef3535..2d20c6a4f5c 100644 --- a/programs/winedbg/gdbproxy.c +++ b/programs/winedbg/gdbproxy.c @@ -587,7 +587,7 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load return TRUE; case UNLOAD_DLL_DEBUG_EVENT: - fprintf(stderr, "%08lx:%08lx: unload DLL @%p\n", + fprintf(stderr, "%04lx:%04lx: unload DLL @%p\n", de->dwProcessId, de->dwThreadId, de->u.UnloadDll.lpBaseOfDll); SymUnloadModule(gdbctx->process->handle, (DWORD_PTR)de->u.UnloadDll.lpBaseOfDll); @@ -596,16 +596,16 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load return TRUE; case EXCEPTION_DEBUG_EVENT: - TRACE("%08lx:%08lx: exception code=0x%08lx\n", de->dwProcessId, - de->dwThreadId, de->u.Exception.ExceptionRecord.ExceptionCode); + TRACE("%04lx:%04lx: exception code=0x%08lx\n", de->dwProcessId, + de->dwThreadId, de->u.Exception.ExceptionRecord.ExceptionCode); if (handle_exception(gdbctx, &de->u.Exception)) return TRUE; break; case CREATE_THREAD_DEBUG_EVENT: - fprintf(stderr, "%08lx:%08lx: create thread D @%p\n", de->dwProcessId, - de->dwThreadId, de->u.CreateThread.lpStartAddress); + fprintf(stderr, "%04lx:%04lx: create thread D @%p\n", de->dwProcessId, + de->dwThreadId, de->u.CreateThread.lpStartAddress); dbg_add_thread(gdbctx->process, de->dwThreadId, @@ -614,14 +614,14 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load return TRUE; case EXIT_THREAD_DEBUG_EVENT: - fprintf(stderr, "%08lx:%08lx: exit thread (%lu)\n", + fprintf(stderr, "%04lx:%04lx: exit thread (%lu)\n", de->dwProcessId, de->dwThreadId, de->u.ExitThread.dwExitCode); if ((thread = dbg_get_thread(gdbctx->process, de->dwThreadId))) dbg_del_thread(thread); return TRUE; case EXIT_PROCESS_DEBUG_EVENT: - fprintf(stderr, "%08lx:%08lx: exit process (%lu)\n", + fprintf(stderr, "%04lx:%04lx: exit process (%lu)\n", de->dwProcessId, de->dwThreadId, de->u.ExitProcess.dwExitCode); dbg_del_process(gdbctx->process); @@ -632,18 +632,18 @@ static BOOL handle_debug_event(struct gdb_context* gdbctx, BOOL stop_on_dll_load memory_get_string(gdbctx->process, de->u.DebugString.lpDebugStringData, TRUE, de->u.DebugString.fUnicode, u.bufferA, sizeof(u.bufferA)); - fprintf(stderr, "%08lx:%08lx: output debug string (%s)\n", - de->dwProcessId, de->dwThreadId, debugstr_a(u.bufferA)); + fprintf(stderr, "%04lx:%04lx: output debug string (%s)\n", + de->dwProcessId, de->dwThreadId, debugstr_a(u.bufferA)); return TRUE; case RIP_EVENT: - fprintf(stderr, "%08lx:%08lx: rip error=%lu type=%lu\n", de->dwProcessId, - de->dwThreadId, de->u.RipInfo.dwError, de->u.RipInfo.dwType); + fprintf(stderr, "%04lx:%04lx: rip error=%lu type=%lu\n", de->dwProcessId, + de->dwThreadId, de->u.RipInfo.dwError, de->u.RipInfo.dwType); return TRUE; default: - FIXME("%08lx:%08lx: unknown event (%lu)\n", - de->dwProcessId, de->dwThreadId, de->dwDebugEventCode); + FIXME("%04lx:%04lx: unknown event (%lu)\n", + de->dwProcessId, de->dwThreadId, de->dwDebugEventCode); } LIST_FOR_EACH_ENTRY(thread, &gdbctx->process->threads, struct dbg_thread, entry)