mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-15 16:42:23 -07:00
round to 4K rather than 16K boundaries for starting disasm address
This commit is contained in:
@@ -2767,7 +2767,7 @@ rd_range_from_eval_params(E_Eval eval, MD_Node *params)
|
||||
}
|
||||
if(size == 0)
|
||||
{
|
||||
size = 16384;
|
||||
size = KB(64);
|
||||
}
|
||||
Rng1U64 result = {0};
|
||||
result.min = rd_base_offset_from_eval(eval);
|
||||
|
||||
@@ -6037,13 +6037,13 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(disasm)
|
||||
{
|
||||
auto_selected = 1;
|
||||
auto_space = rd_eval_space_from_ctrl_entity(ctrl_entity_from_handle(d_state->ctrl_entity_store, dv->temp_look_process), RD_EvalSpaceKind_CtrlEntity);
|
||||
string = push_str8f(scratch.arena, "(0x%I64x & (~(0x4000 - 1))) + 1", dv->temp_look_vaddr);
|
||||
string = push_str8f(scratch.arena, "(0x%I64x & (~(0x1000 - 1)))", dv->temp_look_vaddr);
|
||||
}
|
||||
else
|
||||
{
|
||||
auto_selected = 1;
|
||||
auto_space = rd_eval_space_from_ctrl_entity(ctrl_entity_from_handle(d_state->ctrl_entity_store, rd_regs()->process), RD_EvalSpaceKind_CtrlEntity);
|
||||
string = str8_lit("(rip.u64 & (~(0x4000 - 1))) + 1");
|
||||
string = str8_lit("(rip.u64 & (~(0x1000 - 1)))");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user