Commit 15d30f84 authored by Alexandre Julliard's avatar Alexandre Julliard

winedbg: Use the correct context when fetching the frame state for backtraces.

parent 2286267a
...@@ -220,9 +220,9 @@ unsigned stack_fetch_frames(const CONTEXT* _ctx) ...@@ -220,9 +220,9 @@ unsigned stack_fetch_frames(const CONTEXT* _ctx)
dbg_curr_thread->frames = NULL; dbg_curr_thread->frames = NULL;
memset(&sf, 0, sizeof(sf)); memset(&sf, 0, sizeof(sf));
memory_get_current_frame(&sf.AddrFrame); be_cpu->get_addr(dbg_curr_thread->handle, &ctx, be_cpu_addr_frame, &sf.AddrFrame);
memory_get_current_pc(&sf.AddrPC); be_cpu->get_addr(dbg_curr_thread->handle, &ctx, be_cpu_addr_pc, &sf.AddrPC);
memory_get_current_stack(&sf.AddrStack); be_cpu->get_addr(dbg_curr_thread->handle, &ctx, be_cpu_addr_stack, &sf.AddrStack);
/* don't confuse StackWalk by passing in inconsistent addresses */ /* don't confuse StackWalk by passing in inconsistent addresses */
if ((sf.AddrPC.Mode == AddrModeFlat) && (sf.AddrFrame.Mode != AddrModeFlat)) if ((sf.AddrPC.Mode == AddrModeFlat) && (sf.AddrFrame.Mode != AddrModeFlat))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment