Expand comment about set_skipdata

This commit is contained in:
bjorn3
2020-04-17 19:44:19 +02:00
parent cb1c9ef085
commit 3528c9e00f

View File

@@ -156,7 +156,11 @@ cfg_if! {
.mode(arch::arm64::ArchMode::Arm) .mode(arch::arm64::ArchMode::Arm)
.build() .build()
.map_err(|err| err.to_string())?; .map_err(|err| err.to_string())?;
// Inline constants should be skipped // AArch64 uses inline constants rather than a separate constant pool right now.
// Without this option, Capstone will stop disassembling as soon as it sees
// an inline constant that is not also a valid instruction. With this option,
// Capstone will print a `.byte` directive with the bytes of the inline constant
// and continue to the next instruction.
cs.set_skipdata(true).map_err(|err| err.to_string())?; cs.set_skipdata(true).map_err(|err| err.to_string())?;
Ok(cs) Ok(cs)
} }