Browse Source

Expand comment about set_skipdata

pull/1522/head
bjorn3 5 years ago
parent
commit
3528c9e00f
  1. 6
      cranelift/src/disasm.rs

6
cranelift/src/disasm.rs

@ -156,7 +156,11 @@ cfg_if! {
.mode(arch::arm64::ArchMode::Arm)
.build()
.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())?;
Ok(cs)
}

Loading…
Cancel
Save