mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 21:09:41 -07:00
fix flipped interpretation of scope address ranges in dwarf - address class implies opl, not size
This commit is contained in:
1 parent
3b22b1f13e
commit
9f82a6fe91
2 files changed
+8
-3
No files matched your search
@@ -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});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user