mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-19 20:50:09 -08:00
eval, local variable resolution -> do not assume offset evaluations. infer evaluation mode from location info
This commit is contained in:
1 parent
7fbea68613
commit
0c434583bc
5 files changed
+60
-34
No files matched your search
@@ -709,8 +709,7 @@ e_oplist_from_location(Arena *arena, RDI_Parsed *rdi, RDI_Location loc)
|
||||
ARCH_RegCode reg_code = arch_reg_code_from_rdi(arch, rdi_regcode);
|
||||
Rng1U16 reg_rng = arch_info->reg_code_rng_table[reg_code];
|
||||
U64 byte_size = (U64)dim_1u16(reg_rng);
|
||||
U64 byte_pos = reg_rng.min;
|
||||
e_oplist_push_op(arena, &result, RDI_EvalOp_RegRead, e_value_u64(RDI_EncodeRegReadParam(rdi_regcode, byte_size, byte_pos)));
|
||||
e_oplist_push_op(arena, &result, RDI_EvalOp_RegRead, e_value_u64(RDI_EncodeRegReadParam(rdi_regcode, byte_size, 0)));
|
||||
}break;
|
||||
|
||||
//- rjf: space offsets
|
||||
|
||||
@@ -1874,6 +1874,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, E_I
|
||||
U64 ip_voff = e_base_ctx->thread_ip_voff;
|
||||
{
|
||||
mapped_location = rdi_location_from_location_voff(rdi, local->location, ip_voff);
|
||||
mapped_bytecode_mode = E_Mode_Null;
|
||||
if(mapped_location != 0)
|
||||
{
|
||||
got_location_block = 1;
|
||||
|
||||
Reference in new issue
Block a user