From f969ababe7bfb74ff6c17c27e2b86f83f4992efb Mon Sep 17 00:00:00 2001 From: WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:38:38 +0100 Subject: [PATCH] linux: Fix early instrumentation on 32-bit systems --- src/linux/frida-helper-backend.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/frida-helper-backend.vala b/src/linux/frida-helper-backend.vala index 9da2152c4..230896082 100644 --- a/src/linux/frida-helper-backend.vala +++ b/src/linux/frida-helper-backend.vala @@ -1996,7 +1996,7 @@ namespace Frida { get_regs (&saved_regs); write_memory (target_address, original_code); - bool hit_breakpoint = saved_regs.program_counter == target_address || + bool hit_breakpoint = (void *) saved_regs.program_counter == (void *) target_address || saved_regs.program_counter == target_address + breakpoint_data.length; if (!hit_breakpoint) throw new Error.NOT_SUPPORTED ("Unable to reach breakpoint (got unknown trap)");