mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
fix stack dumps from printing an infinite amount of <0> in some cases
svn path=/trunk/; revision=12199
This commit is contained in:
parent
91bbf4471d
commit
8e3c98a05f
|
@ -632,10 +632,11 @@ KeDumpStackFrames(PULONG Frame)
|
|||
DbgPrint("Frames: ");
|
||||
while ( MmIsAddressValid(Frame) )
|
||||
{
|
||||
if (!KeRosPrintAddress((PVOID)Frame[1]))
|
||||
{
|
||||
DbgPrint("<%X>", (PVOID)Frame[1]);
|
||||
}
|
||||
ULONG Addr = Frame[1];
|
||||
if (!KeRosPrintAddress((PVOID)Addr))
|
||||
DbgPrint("<%X>", Addr);
|
||||
if ( Addr == 0 || Addr == 0xDEADBEEF )
|
||||
break;
|
||||
Frame = (PULONG)Frame[0];
|
||||
DbgPrint(" ");
|
||||
}
|
||||
|
@ -661,13 +662,9 @@ KeRosDumpStackFrames ( PULONG Frame, ULONG FrameCount )
|
|||
{
|
||||
ULONG Addr = Frame[1];
|
||||
if (!KeRosPrintAddress((PVOID)Addr))
|
||||
{
|
||||
DbgPrint("<%X>", Addr);
|
||||
}
|
||||
if ( Addr == 0 || Addr == 0xDEADBEEF )
|
||||
{
|
||||
break;
|
||||
}
|
||||
Frame = (PULONG)Frame[0];
|
||||
DbgPrint(" ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue