Fix printing of LoadAddr
This commit is contained in:
@@ -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")),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user