diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-18 13:54:32 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-18 13:54:50 -0500 |
| commit | 9d6ca8c0d0ad9a1ce3b0b5eabf8c716d3c197896 (patch) | |
| tree | 9c4917602500e534a987dc5155eabd1b734fbf89 /rust/src/medium_level_il | |
| parent | 6866a439c4bb3827ce05b7c462b76cdf260e6a2b (diff) | |
Remove function from Debug impl of MediumLevelILLiftedInstruction in Rust API
Causing unneeded noise in the debug print
Diffstat (limited to 'rust/src/medium_level_il')
| -rw-r--r-- | rust/src/medium_level_il/lift.rs | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/rust/src/medium_level_il/lift.rs b/rust/src/medium_level_il/lift.rs index d6cceb18..3f161484 100644 --- a/rust/src/medium_level_il/lift.rs +++ b/rust/src/medium_level_il/lift.rs @@ -1,10 +1,10 @@ -use std::collections::BTreeMap; - use super::operation::*; use super::{MediumLevelILFunction, MediumLevelInstructionIndex}; use crate::architecture::CoreIntrinsic; use crate::rc::Ref; use crate::variable::{ConstantData, SSAVariable, Variable}; +use std::collections::BTreeMap; +use std::fmt::{Debug, Formatter}; #[derive(Clone)] pub enum MediumLevelILLiftedOperand { @@ -23,7 +23,7 @@ pub enum MediumLevelILLiftedOperand { InstructionIndex(MediumLevelInstructionIndex), } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, PartialEq)] pub struct MediumLevelILLiftedInstruction { pub function: Ref<MediumLevelILFunction>, pub address: u64, @@ -32,6 +32,17 @@ pub struct MediumLevelILLiftedInstruction { pub kind: MediumLevelILLiftedInstructionKind, } +impl Debug for MediumLevelILLiftedInstruction { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + f.debug_struct("MediumLevelILLiftedInstruction") + .field("address", &self.address) + .field("index", &self.index) + .field("size", &self.size) + .field("kind", &self.kind) + .finish() + } +} + #[derive(Clone, Debug, PartialEq)] pub enum MediumLevelILLiftedInstructionKind { Nop, |
