Alexandre Julliard : winedbg: Use the correct context when fetching the frame state for backtraces.
Alexandre Julliard
julliard at winehq.org
Thu Jul 1 11:19:29 CDT 2010
Module: wine
Branch: master
Commit: 15d30f84a3c5ab693be7db51f37a13a747f22768
URL: http://source.winehq.org/git/wine.git/?a=commit;h=15d30f84a3c5ab693be7db51f37a13a747f22768
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jun 30 21:16:24 2010 +0200
winedbg: Use the correct context when fetching the frame state for backtraces.
---
programs/winedbg/stack.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c
index be535f9..57eca5c 100644
--- a/programs/winedbg/stack.c
+++ b/programs/winedbg/stack.c
@@ -220,9 +220,9 @@ unsigned stack_fetch_frames(const CONTEXT* _ctx)
dbg_curr_thread->frames = NULL;
memset(&sf, 0, sizeof(sf));
- memory_get_current_frame(&sf.AddrFrame);
- memory_get_current_pc(&sf.AddrPC);
- memory_get_current_stack(&sf.AddrStack);
+ be_cpu->get_addr(dbg_curr_thread->handle, &ctx, be_cpu_addr_frame, &sf.AddrFrame);
+ be_cpu->get_addr(dbg_curr_thread->handle, &ctx, be_cpu_addr_pc, &sf.AddrPC);
+ be_cpu->get_addr(dbg_curr_thread->handle, &ctx, be_cpu_addr_stack, &sf.AddrStack);
/* don't confuse StackWalk by passing in inconsistent addresses */
if ((sf.AddrPC.Mode == AddrModeFlat) && (sf.AddrFrame.Mode != AddrModeFlat))
More information about the wine-cvs
mailing list