tinus <o112w8r02@sneakemail.com>
authorFilip Navara <filip.navara@gmail.com>
Sat, 30 Apr 2005 04:43:17 +0000 (04:43 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sat, 30 Apr 2005 04:43:17 +0000 (04:43 +0000)
Change the backtrace command to show current EIP too.

svn path=/trunk/; revision=14864

reactos/ntoskrnl/kdbg/kdb_cli.c

index 239fbd3..0d8342a 100644 (file)
@@ -569,6 +569,15 @@ KdbpCmdBackTrace(ULONG Argc, PCHAR Argv[])
          return TRUE;
       }
    }
+   else
+   {
+      KdbpPrint("Eip:\n");
+      /* Try printing the function at EIP */
+      if (!KdbSymPrintAddress((PVOID)KdbCurrentTrapFrame->Tf.Eip))
+         KdbpPrint("<%08x>\n", KdbCurrentTrapFrame->Tf.Eip);
+      else
+         KdbpPrint("\n");
+   }
 
    KdbpPrint("Frames:\n");
    while (Frame != 0)