[ros-diffs] [fireball] 30817: - Display kernelmode source file:line in KeRosDumpStackFrames() too if KDBG is enabled.

fireball at svn.reactos.org fireball at svn.reactos.org
Tue Nov 27 13:51:09 CET 2007


Author: fireball
Date: Tue Nov 27 15:51:08 2007
New Revision: 30817

URL: http://svn.reactos.org/svn/reactos?rev=30817&view=rev
Log:
- Display kernelmode source file:line in KeRosDumpStackFrames() too if KDBG is enabled.

Modified:
    trunk/reactos/ntoskrnl/ke/bug.c

Modified: trunk/reactos/ntoskrnl/ke/bug.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/bug.c?rev=30817&r1=30816&r2=30817&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/bug.c (original)
+++ trunk/reactos/ntoskrnl/ke/bug.c Tue Nov 27 15:51:08 2007
@@ -263,9 +263,14 @@
         /* Get the base for this file */
         if (KiPcToFileHeader((PVOID)Addr, &LdrEntry, FALSE, &InSystem))
         {
-            /* Print out the module name */
-            Addr -= (ULONG_PTR)LdrEntry->DllBase;
-            DbgPrint("<%wZ: %x>", &LdrEntry->FullDllName, Addr);
+#ifdef KDBG
+            if (!KdbSymPrintAddress((PVOID)Addr))
+#endif
+            {
+                /* Print out the module name */
+                Addr -= (ULONG_PTR)LdrEntry->DllBase;
+                DbgPrint("<%wZ: %x>", &LdrEntry->FullDllName, Addr);
+            }
         }
         else if (Addr)
         {




More information about the Ros-diffs mailing list