- Display kernelmode source file:line in KeRosDumpStackFrames() too if KDBG is enabled.

svn path=/trunk/; revision=30817
This commit is contained in:
Aleksey Bragin 2007-11-27 12:51:08 +00:00
parent 4223e8ab74
commit ac0b79ca29

View file

@ -263,9 +263,14 @@ KeRosDumpStackFrames(IN PULONG Frame OPTIONAL,
/* Get the base for this file */ /* Get the base for this file */
if (KiPcToFileHeader((PVOID)Addr, &LdrEntry, FALSE, &InSystem)) if (KiPcToFileHeader((PVOID)Addr, &LdrEntry, FALSE, &InSystem))
{ {
/* Print out the module name */ #ifdef KDBG
Addr -= (ULONG_PTR)LdrEntry->DllBase; if (!KdbSymPrintAddress((PVOID)Addr))
DbgPrint("<%wZ: %x>", &LdrEntry->FullDllName, Addr); #endif
{
/* Print out the module name */
Addr -= (ULONG_PTR)LdrEntry->DllBase;
DbgPrint("<%wZ: %x>", &LdrEntry->FullDllName, Addr);
}
} }
else if (Addr) else if (Addr)
{ {