[NTOSKRNL] Add a raw implementation of !irpfind in kdbg
[reactos.git] / ntoskrnl / ps / debug.c
index e075652..d87595a 100644 (file)
@@ -46,7 +46,7 @@ PspDumpThreads(BOOLEAN IncludeSystem)
                 nThreads++;
 
                 /* Print the Info */
-                DbgPrint("State %d Affinity %08x Priority %d PID.TID %d.%d Name %.8s Stack: \n",
+                DbgPrint("State %u Affinity %08x Priority %d PID.TID %d.%d Name %.8s Stack: \n",
                          Thread->Tcb.State,
                          Thread->Tcb.Affinity,
                          Thread->Tcb.Priority,
@@ -59,12 +59,13 @@ PspDumpThreads(BOOLEAN IncludeSystem)
                    Thread->Tcb.State == Standby ||
                    Thread->Tcb.State == Waiting)
                 {
+#ifdef _M_IX86
                     ULONG i = 0;
                     PULONG Esp = (PULONG)Thread->Tcb.KernelStack;
                     PULONG Ebp = (PULONG)Esp[4];
 
                     /* Print EBP */
-                    DbgPrint("Ebp 0x%.8X\n", Ebp);
+                    DbgPrint("Ebp %p\n", Ebp);
 
                     /* Walk it */
                     while(Ebp != 0 && Ebp >= (PULONG)Thread->Tcb.StackLimit)
@@ -77,6 +78,9 @@ PspDumpThreads(BOOLEAN IncludeSystem)
 
                     /* Print a new line if there's nothing */
                     if((i % 8) != 0) DbgPrint("\n");
+#else
+                    DbgPrint("FIXME: Backtrace skipped on non-x86\n");
+#endif
                 }
 
                 /* Move to the next Thread */