GhidraSleigh

Struct GhidraSleigh 

Source
pub struct GhidraSleigh { /* private fields */ }
Expand description

Sleigh instance that uses Ghidra libsla for its disassembly.

Implementations§

Source§

impl GhidraSleigh

Source

pub fn builder() -> GhidraSleighBuilder<MissingSpec>

Create a new sleigh builder. Use this to construct a sleigh instance.

Trait Implementations§

Source§

impl Sleigh for GhidraSleigh

Source§

fn register_name(&self, target: &VarnodeData) -> Option<String>

Get the register name for a varnode targeting a register. This will return None if the target is not a valid register.

Source§

fn default_code_space(&self) -> AddressSpace

Get the default address space for code execution
Source§

fn address_spaces(&self) -> Vec<AddressSpace>

List all available address spaces
Source§

fn register_from_name(&self, name: impl AsRef<str>) -> Result<VarnodeData>

Get the VarnodeData that represents the named register.
Source§

fn disassemble_pcode( &self, loader: &dyn InstructionLoader, address: Address, ) -> Result<PcodeDisassembly>

Disassemble the instructions at the given address into pcode.
Source§

fn disassemble_native( &self, loader: &dyn InstructionLoader, address: Address, ) -> Result<NativeDisassembly>

Disassemble the instructions at the given address into native assembly instructions.
Source§

fn register_name_map(&self) -> BTreeMap<VarnodeData, String>

Get a sorted map of registers to register names.
Source§

fn address_space_by_name(&self, name: impl AsRef<str>) -> Option<AddressSpace>

Get an address space by name (if it exists)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.