winedbg: Ensure the stack pointer is also passed to StackWalk.

This commit is contained in:
Eric Pouech 2009-12-22 14:20:27 +01:00 committed by Alexandre Julliard
parent a775d41c10
commit afcd3a6b1a
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ unsigned stack_fetch_frames(void)
memset(&sf, 0, sizeof(sf));
memory_get_current_frame(&sf.AddrFrame);
memory_get_current_pc(&sf.AddrPC);
memory_get_current_stack(&sf.AddrStack);
/* don't confuse StackWalk by passing in inconsistent addresses */
if ((sf.AddrPC.Mode == AddrModeFlat) && (sf.AddrFrame.Mode != AddrModeFlat))