dbghelp/dwarf: Detect auto reference between a dwarf's DIE and its type.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-09-11 10:59:36 +02:00 committed by Alexandre Julliard
parent 3111daa222
commit e28ec5a0fb
1 changed files with 5 additions and 0 deletions

View File

@ -1025,6 +1025,11 @@ static struct symt* dwarf2_lookup_type(dwarf2_parse_context_t* ctx,
FIXME("Unable to find back reference to type %lx\n", attr.u.uvalue); FIXME("Unable to find back reference to type %lx\n", attr.u.uvalue);
return ctx->symt_cache[sc_unknown]; return ctx->symt_cache[sc_unknown];
} }
if (type == di)
{
FIXME("Reference to itself\n");
return ctx->symt_cache[sc_unknown];
}
if (!type->symt) if (!type->symt)
{ {
/* load the debug info entity */ /* load the debug info entity */