[NTOSKRNL] In kdbg 'thread list', don't try to read from the kernel stack if there isn't one. (Bug 5318)

svn path=/trunk/; revision=47102
This commit is contained in:
Jeffrey Morlan
2010-05-04 23:17:30 +00:00
parent 950bbde105
commit 79121eccea
+7 -1
View File
@@ -1223,7 +1223,13 @@ KdbpCmdThread(
str2 = "";
}
if (Thread->Tcb.TrapFrame)
if (!Thread->Tcb.InitialStack)
{
/* Thread has no kernel stack (probably terminated) */
Esp = Ebp = NULL;
Eip = 0;
}
else if (Thread->Tcb.TrapFrame)
{
if (Thread->Tcb.TrapFrame->PreviousPreviousMode == KernelMode)
Esp = (PULONG)Thread->Tcb.TrapFrame->TempEsp;