Eric Pouech : dbghelp/dwarf: Added support for parsing dwarf's 3 restrict type TAG.
Alexandre Julliard
julliard at winehq.org
Tue Sep 21 15:59:04 CDT 2021
Module: wine
Branch: master
Commit: 09d2a6cffb6b7f3ca373bddacf97bdbe1284d993
URL: https://source.winehq.org/git/wine.git/?a=commit;h=09d2a6cffb6b7f3ca373bddacf97bdbe1284d993
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue Sep 21 08:00:12 2021 +0200
dbghelp/dwarf: Added support for parsing dwarf's 3 restrict type TAG.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/dwarf.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index fd50f590982..41abb91f33b 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1507,6 +1507,21 @@ static struct symt* dwarf2_parse_volatile_type(dwarf2_debug_info_t* di)
return ref_type;
}
+static struct symt* dwarf2_parse_restrict_type(dwarf2_debug_info_t* di)
+{
+ struct symt* ref_type;
+
+ if (di->symt) return di->symt;
+
+ TRACE("%s\n", dwarf2_debug_di(di));
+
+ ref_type = dwarf2_lookup_type(di);
+ if (dwarf2_get_di_children(di)) FIXME("Unsupported children\n");
+ di->symt = ref_type;
+
+ return ref_type;
+}
+
static struct symt* dwarf2_parse_unspecified_type(dwarf2_debug_info_t* di)
{
struct attribute name;
@@ -2265,6 +2280,9 @@ static void dwarf2_load_one_entry(dwarf2_debug_info_t* di)
case DW_TAG_volatile_type:
dwarf2_parse_volatile_type(di);
break;
+ case DW_TAG_restrict_type:
+ dwarf2_parse_restrict_type(di);
+ break;
case DW_TAG_unspecified_type:
dwarf2_parse_unspecified_type(di);
break;
More information about the wine-cvs
mailing list