Eric Pouech : dbghelp/dwarf: Add support for partial compilation units.
Alexandre Julliard
julliard at winehq.org
Mon Sep 27 15:21:43 CDT 2021
Module: wine
Branch: master
Commit: e5a1b8b3348031cba52769162f063a197c64d19f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e5a1b8b3348031cba52769162f063a197c64d19f
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Sun Sep 26 14:46:37 2021 +0200
dbghelp/dwarf: Add support for partial compilation units.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/dwarf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 731a7136601..13423c93515 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1147,7 +1147,7 @@ static const char* dwarf2_get_cpp_name(dwarf2_debug_info_t* di, const char* name
struct attribute diname;
struct attribute spec;
- if (di->abbrev->tag == DW_TAG_compile_unit) return name;
+ if (di->abbrev->tag == DW_TAG_compile_unit || di->abbrev->tag == DW_TAG_partial_unit) return name;
/* if the di is a definition, but has also a (previous) declaration, then scope must
* be gotten from declaration not definition
@@ -2718,7 +2718,7 @@ static BOOL dwarf2_parse_compilation_unit(dwarf2_parse_context_t* ctx)
ctx->status = UNIT_BEINGLOADED;
if (dwarf2_read_one_debug_info(ctx, &cu_ctx, NULL, &di))
{
- if (di->abbrev->tag == DW_TAG_compile_unit)
+ if (di->abbrev->tag == DW_TAG_compile_unit || di->abbrev->tag == DW_TAG_partial_unit)
{
struct attribute name;
struct vector* children;
@@ -2754,7 +2754,7 @@ static BOOL dwarf2_parse_compilation_unit(dwarf2_parse_context_t* ctx)
ctx->status = UNIT_LOADED;
ret = TRUE;
}
- else FIXME("Should have a compilation unit here\n");
+ else FIXME("Should have a compilation unit here %lu\n", di->abbrev->tag);
}
if (ctx->status == UNIT_BEINGLOADED) ctx->status = UNIT_LOADED_FAIL;
return ret;
More information about the wine-cvs
mailing list