[PATCH 19/31] [DbgHelp]: dwarf & global symbols
Eric Pouech
eric.pouech at wanadoo.fr
Sun Jun 18 14:31:52 CDT 2006
- offset the addresses for global symbols (func & variables) by
the base image of the corresponding module
A+
---
dlls/dbghelp/dwarf.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 97a6210..bea4fbe 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1120,7 +1120,8 @@ static struct symt* dwarf2_parse_subprog
if (!is_decl.uvalue)
{
func = symt_new_function(ctx->module, compiland, name.string,
- low_pc.uvalue, high_pc.uvalue - low_pc.uvalue,
+ ctx->module->module.BaseOfImage + low_pc.uvalue,
+ high_pc.uvalue - low_pc.uvalue,
&sig_type->symt);
di->symt = &func->symt;
}
More information about the wine-patches
mailing list