From aea8e8b13e28b381ce7cc070b90c9fd8b42e09c5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 18 Apr 2024 15:38:38 +0100 Subject: [PATCH] Fix frida-core 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)");