add cfg target aarch64 on cmplog related code within stalker loop

This commit is contained in:
Omree 2021-05-09 19:15:07 +03:00
parent 2c0548a757
commit 23b2b4a06e

View File

@ -356,6 +356,9 @@ impl<'a> FridaInstrumentationHelper<'a> {
} }
if helper.options().cmplog_enabled() { if helper.options().cmplog_enabled() {
#[cfg(not(target_arch = "aarch64"))]
todo!("Implement cmplog for non-aarch64 targets");
#[cfg(target_arch = "aarch64")]
// check if this instruction is a compare instruction and if so save the registers values // check if this instruction is a compare instruction and if so save the registers values
if let Ok((op1, op2)) = if let Ok((op1, op2)) =
helper.is_interesting_cmplog_instruction(address, instr) helper.is_interesting_cmplog_instruction(address, instr)