Commit dcbb1456 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Function static variables should be found by address.

parent f763332b
......@@ -150,11 +150,10 @@ static BOOL symt_grow_sorttab(struct module* module, unsigned sz)
return TRUE;
}
static void symt_add_module_ht(struct module* module, struct symt_ht* ht)
static void symt_add_module_addr(struct module* module, struct symt_ht* ht)
{
ULONG64 addr;
hash_table_add(&module->ht_symbols, &ht->hash_elt);
/* Don't store in sorttab a symbol without address, they are of
* no use here (e.g. constant values)
*/
......@@ -166,6 +165,12 @@ static void symt_add_module_ht(struct module* module, struct symt_ht* ht)
}
}
static void symt_add_module_ht(struct module* module, struct symt_ht* ht)
{
hash_table_add(&module->ht_symbols, &ht->hash_elt);
symt_add_module_addr(module, ht);
}
static WCHAR* file_regex(const char* srcfile)
{
WCHAR* mask;
......@@ -488,6 +493,8 @@ struct symt_data* symt_add_func_local(struct module* module,
else
p = vector_add(&func->vchildren, &module->pool);
*p = &locsym->symt;
if (dt == DataIsStaticLocal)
symt_add_module_addr(module, (struct symt_ht*)locsym);
return locsym;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment