Fix printing of LoadAddr

This commit is contained in:
bjorn3
2020-04-17 11:50:40 +02:00
parent 259de864e4
commit cb1c9ef085
3 changed files with 53 additions and 16 deletions

View File

@@ -150,10 +150,16 @@ cfg_if! {
.build()
}
}
Architecture::Aarch64 {..} => Capstone::new()
.arm64()
.mode(arch::arm64::ArchMode::Arm)
.build(),
Architecture::Aarch64 {..} => {
let mut cs = Capstone::new()
.arm64()
.mode(arch::arm64::ArchMode::Arm)
.build()
.map_err(|err| err.to_string())?;
// Inline constants should be skipped
cs.set_skipdata(true).map_err(|err| err.to_string())?;
Ok(cs)
}
_ => return Err(String::from("Unknown ISA")),
};