Eric Pouech : dbghelp: Dwarf & global symbols.
Module: wine Branch: refs/heads/master Commit: df179e9bf189fbc33e42c7ac3bc55e346b3b7db9 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=df179e9bf189fbc33e42c7ac... Author: Eric Pouech <eric.pouech(a)wanadoo.fr> Date: Sun Jun 18 21:31:52 2006 +0200 dbghelp: Dwarf & global symbols. Offset the addresses for global symbols (func & variables) by the base image of the corresponding module. --- 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 4cffd0a..adde41d 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; }
participants (1)
-
Alexandre Julliard