fix flipped interpretation of scope address ranges in dwarf - address class implies opl, not size

This commit is contained in:
Ryan Fleury committed 2026-06-19 12:41:17 -07:00
1 parent 3b22b1f13e
commit 9f82a6fe91
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -3080,11 +3080,11 @@ d2r_convert(Arena *arena, D2R_ConvertParams *params)
U64 voff_opl = 0;
if(dw_attrib_class_from_form_kind(unit_parse_ctx->version, unit_parse_ctx->exts, hipc_attrib->val.kind) & (1<<DW_AttribClass_Address))
{
voff_opl = voff_base + hipc_attrib->val.u128.u64[0];
voff_opl = hipc_attrib->val.addr;
}
else
{
voff_opl = hipc_attrib->val.addr;
voff_opl = voff_base + hipc_attrib->val.u128.u64[0];
}
rdim_rng1u64_list_push(arena, &ranges, (RDIM_Rng1U64){voff_base, voff_opl});
}