Eric Pouech : dbghelp/dwarf: Detect auto reference between a dwarf's DIE and its type.
Alexandre Julliard
julliard at winehq.org
Tue Sep 14 16:00:14 CDT 2021
Module: wine
Branch: master
Commit: e28ec5a0fb6fbbca7ed69d445881dfc60974ea4a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e28ec5a0fb6fbbca7ed69d445881dfc60974ea4a
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Sat Sep 11 10:59:36 2021 +0200
dbghelp/dwarf: Detect auto reference between a dwarf's DIE and its type.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/dwarf.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index a59999c9e70..00fa0f6fb60 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -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);
return ctx->symt_cache[sc_unknown];
}
+ if (type == di)
+ {
+ FIXME("Reference to itself\n");
+ return ctx->symt_cache[sc_unknown];
+ }
if (!type->symt)
{
/* load the debug info entity */
More information about the wine-cvs
mailing list