[NTOS:KDBG] Fix invalid DBG print

This commit is contained in:
Jérôme Gardou 2021-04-28 15:58:01 +02:00
parent 0ab44664b6
commit b97d5fd2f7

View file

@ -1802,21 +1802,23 @@ KdbpCmdThread(
" Stack Base: 0x%08x\n" " Stack Base: 0x%08x\n"
" Kernel Stack: 0x%08x\n" " Kernel Stack: 0x%08x\n"
" Trap Frame: 0x%08x\n" " Trap Frame: 0x%08x\n"
" NPX State: %s (0x%x)\n", #ifndef _M_AMD64
(Argc < 2) ? "Current Thread:\n" : "", " NPX State: %s (0x%x)\n"
Thread->Cid.UniqueThread, #endif
State, Thread->Tcb.State, , (Argc < 2) ? "Current Thread:\n" : ""
Thread->Tcb.Priority, , Thread->Cid.UniqueThread
Thread->Tcb.Affinity, , State, Thread->Tcb.State
Thread->Tcb.InitialStack, , Thread->Tcb.Priority
Thread->Tcb.StackLimit, , Thread->Tcb.Affinity
Thread->Tcb.StackBase, , Thread->Tcb.InitialStack
Thread->Tcb.KernelStack, , Thread->Tcb.StackLimit
Thread->Tcb.TrapFrame , Thread->Tcb.StackBase
, Thread->Tcb.KernelStack
, Thread->Tcb.TrapFrame
#ifndef _M_AMD64 #ifndef _M_AMD64
, NPX_STATE_TO_STRING(Thread->Tcb.NpxState), Thread->Tcb.NpxState , NPX_STATE_TO_STRING(Thread->Tcb.NpxState), Thread->Tcb.NpxState
#endif #endif
); );
/* Release our reference if we had one */ /* Release our reference if we had one */
if (ReferencedThread) if (ReferencedThread)