[PATCH 0/1] MR1999: dbghelp: Don't use dbghelp_current_cpu.
It's bound to debugger's CPU not debuggee's. We should eventually get rid of dbghelp_current_cpu, but but that can wait after 8.0 (mainly in minidump.c). Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1999
From: Eric Pouech <eric.pouech(a)gmail.com> It's bound to debugger's CPU not debuggee's. We should eventually get rid of dbghelp_current_cpu, but but that can wait after 8.0 (mainly in minidump.c). Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> --- dlls/dbghelp/msc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c index ebacfc49bfd..9debc34e77c 100644 --- a/dlls/dbghelp/msc.c +++ b/dlls/dbghelp/msc.c @@ -2862,7 +2862,7 @@ static void pdb_location_compute(struct process* pcs, case S_DEFRANGE_FRAMEPOINTER_REL: case S_DEFRANGE_FRAMEPOINTER_REL_FULL_SCOPE: loc->kind = loc_regrel; - loc->reg = dbghelp_current_cpu->frame_regno; + loc->reg = modfmt->module->cpu->frame_regno; loc->offset = locinfo->offset; return; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1999
participants (2)
-
Eric Pouech -
eric pouech (@epo)