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... ============================================================================== --- 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) {