[PATCH] dbghelp: Recognize DW_FORM_flag_present
Nikolay Sivov
nsivov at codeweavers.com
Mon Jul 25 19:08:17 CDT 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
For https://bugs.winehq.org/show_bug.cgi?id=32491
dlls/dbghelp/dwarf.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 655c586..dcbcf0a 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -462,6 +462,7 @@ static void dwarf2_swallow_attribute(dwarf2_traverse_context_t* ctx,
switch (abbrev_attr->form)
{
+ case DW_FORM_flag_present: step = 0; break;
case DW_FORM_ref_addr:
case DW_FORM_addr: step = ctx->word_size; break;
case DW_FORM_flag:
@@ -509,6 +510,11 @@ static void dwarf2_fill_attr(const dwarf2_parse_context_t* ctx,
TRACE("flag<0x%lx>\n", attr->u.uvalue);
break;
+ case DW_FORM_flag_present:
+ attr->u.uvalue = 1;
+ TRACE("flag_present\n");
+ break;
+
case DW_FORM_data1:
attr->u.uvalue = dwarf2_get_byte(data);
TRACE("data1<%lu>\n", attr->u.uvalue);
--
2.8.1
More information about the wine-patches
mailing list