dbghelp: Dwarf & global symbols.

Offset the addresses for global symbols (func & variables) by the base
image of the corresponding module.
oldstable
Eric Pouech 2006-06-18 21:31:52 +02:00 committed by Alexandre Julliard
parent 686237e043
commit df179e9bf1
1 changed files with 2 additions and 1 deletions

View File

@ -1120,7 +1120,8 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
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;
}