From bec653143bd78f1662ed1a556c4b00471f395fcc Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 26 Apr 2024 18:26:12 -0400 Subject: Add HLIL APIs to fetch the root or by instruction index, and expose the operation size in the Rust API --- rust/src/hlil/instruction.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rust/src/hlil/instruction.rs') diff --git a/rust/src/hlil/instruction.rs b/rust/src/hlil/instruction.rs index 9bffadaf..7e77e379 100644 --- a/rust/src/hlil/instruction.rs +++ b/rust/src/hlil/instruction.rs @@ -16,6 +16,7 @@ pub struct HighLevelILInstruction { pub function: Ref, pub address: u64, pub index: usize, + pub size: usize, pub kind: HighLevelILInstructionKind, } @@ -629,6 +630,7 @@ impl HighLevelILInstruction { function, address: op.address, index, + size: op.size, kind, } } @@ -878,6 +880,7 @@ impl HighLevelILInstruction { function: self.function.clone(), address: self.address, index: self.index, + size: self.size, kind, } } -- cgit v1.3.1