Skip to content

Commit

Permalink
Fix frida-core on 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 18, 2024
1 parent a685672 commit cf590d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/frida-helper-backend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand Down

0 comments on commit cf590d7

Please sign in to comment.