From ac0b79ca29013ee94d288c958563a5b06351a48a Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 27 Nov 2007 12:51:08 +0000 Subject: [PATCH] - Display kernelmode source file:line in KeRosDumpStackFrames() too if KDBG is enabled. svn path=/trunk/; revision=30817 --- reactos/ntoskrnl/ke/bug.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/ke/bug.c b/reactos/ntoskrnl/ke/bug.c index 7c6a2ffa38d..bea86aae949 100644 --- a/reactos/ntoskrnl/ke/bug.c +++ b/reactos/ntoskrnl/ke/bug.c @@ -263,9 +263,14 @@ KeRosDumpStackFrames(IN PULONG Frame OPTIONAL, /* 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) {