Commit 87485ea1 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp/dwarf: Handle some Dwarf4 tweaks in high / low pc attributes.

parent 23c32527
...@@ -1244,6 +1244,24 @@ static BOOL dwarf2_read_range(dwarf2_parse_context_t* ctx, const dwarf2_debug_in ...@@ -1244,6 +1244,24 @@ static BOOL dwarf2_read_range(dwarf2_parse_context_t* ctx, const dwarf2_debug_in
return FALSE; return FALSE;
*plow = low_pc.u.uvalue; *plow = low_pc.u.uvalue;
*phigh = high_pc.u.uvalue; *phigh = high_pc.u.uvalue;
if (ctx->head.version >= 4)
switch (high_pc.form)
{
case DW_FORM_addr:
break;
case DW_FORM_data1:
case DW_FORM_data2:
case DW_FORM_data4:
case DW_FORM_data8:
case DW_FORM_sdata:
case DW_FORM_udata:
/* From dwarf4 on, when FORM's class is constant, high_pc is an offset from low_pc */
*phigh += *plow;
break;
default:
FIXME("Unsupported class for high_pc\n");
break;
}
return TRUE; return TRUE;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment