diff options
Diffstat (limited to 'rust/src/high_level_il/operation.rs')
| -rw-r--r-- | rust/src/high_level_il/operation.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/rust/src/high_level_il/operation.rs b/rust/src/high_level_il/operation.rs index 58accce0..340b85a7 100644 --- a/rust/src/high_level_il/operation.rs +++ b/rust/src/high_level_il/operation.rs @@ -1,6 +1,6 @@ -use core::ffi; - use binaryninjacore_sys::*; +use core::ffi; +use std::fmt::{Debug, Formatter}; use super::HighLevelILLiftedInstruction; use crate::architecture::CoreIntrinsic; @@ -9,7 +9,7 @@ use crate::rc::Ref; use crate::string::{BnStrCompatible, BnString}; use crate::variable::{ConstantData, SSAVariable, Variable}; -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq)] pub struct GotoLabel { pub(crate) function: Ref<Function>, pub target: u64, @@ -32,6 +32,15 @@ impl GotoLabel { } } +impl Debug for GotoLabel { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + f.debug_struct("GotoLabel") + .field("name", &self.name()) + .field("target", &self.target) + .finish() + } +} + // ADC, SBB, RLC, RRC #[derive(Debug, Copy, Clone)] pub struct BinaryOpCarry { |
