From f5b7f5b2779b1b29e14856efd2a2e56a7c3b0113 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 31 Jan 2025 13:02:22 -0500 Subject: Add LLIL_REG_STACK_POP and LLIL_REG_STACK_PUSH to Rust API These were unhandled and x87 register stack LLIL would emit a bunch of warnings --- rust/src/architecture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/architecture.rs') diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index 857a6e88..997089f8 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -305,7 +305,7 @@ pub trait RegisterStackInfo: Sized { fn stack_top_reg(&self) -> Self::RegType; } -pub trait RegisterStack: Sized + Clone + Copy { +pub trait RegisterStack: Debug + Sized + Clone + Copy { type InfoType: RegisterStackInfo< RegType = Self::RegType, RegInfoType = Self::RegInfoType, @@ -641,7 +641,7 @@ pub struct UnusedRegisterStackInfo { _reg: std::marker::PhantomData, } -#[derive(Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct UnusedRegisterStack { _reg: std::marker::PhantomData, } -- cgit v1.3.1