Target

Struct Target 

Source
pub struct Target { /* private fields */ }

Implementations§

Source§

impl Target

Source

pub fn notify_thread_lifecycle_event(self: &Rc<Self>, reason: &StopReason)

Source

pub fn create_address_breakpoint( self: &Rc<Self>, address: VirtualAddress, is_hardware: bool, is_internal: bool, ) -> Result<Weak<RefCell<dyn StoppointTrait>>, SdbError>

Source

pub fn create_function_breakpoint( self: &Rc<Self>, function_name: &str, is_hardware: bool, is_internal: bool, ) -> Result<Weak<RefCell<dyn StoppointTrait>>, SdbError>

Source

pub fn create_line_breakpoint( self: &Rc<Self>, file: &Path, line: usize, is_hardware: bool, is_internal: bool, ) -> Result<Weak<RefCell<dyn StoppointTrait>>, SdbError>

Source

pub fn resolve_dynamic_linker_rendezvous( self: &Rc<Self>, ) -> Result<(), SdbError>

Source

pub fn inferior_malloc(&self, size: usize) -> Result<VirtualAddress, SdbError>

Source

pub fn evaluate_expression( &self, expr: &str, otid: Option<Pid>, ) -> Result<Option<EvaluateExpressionResult>, SdbError>

Source

pub fn get_expression_result(&self, index: usize) -> Result<TypedData, SdbError>

Source

pub fn resolve_indirect_name( &self, name: &str, pc: &FileAddress, ) -> Result<ResolveIndirectNameResult, SdbError>

Source

pub fn find_variable( &self, name: &str, pc: &FileAddress, ) -> Result<Option<Rc<Die>>, SdbError>

Source

pub fn read_location_data( &self, loc: &DwarfExpressionResult, size: usize, otid: Option<Pid>, ) -> Result<Vec<u8>, SdbError>

Source

pub fn threads(&self) -> &RefCell<HashMap<Pid, SdbThread>>

Source

pub fn get_stack(&self, otid: Option<Pid>) -> Rc<RefCell<Stack>>

Source

pub fn launch( path: &Path, stdout_replacement: Option<i32>, ) -> Result<Rc<Self>, SdbError>

Source

pub fn attach(pid: Pid) -> Result<Rc<Self>, SdbError>

Source

pub fn get_process(&self) -> Rc<Process>

Source

pub fn get_main_elf(&self) -> Weak<Elf>

Source

pub fn notify_stop(&self, reason: &StopReason) -> Result<(), SdbError>

Source

pub fn get_pc_file_address(&self, otid: Option<Pid>) -> FileAddress

Source

pub fn step_in(&self, otid: Option<Pid>) -> Result<StopReason, SdbError>

Source

pub fn step_out(&self, otid: Option<Pid>) -> Result<StopReason, SdbError>

Source

pub fn step_over(&self, otid: Option<Pid>) -> Result<StopReason, SdbError>

Source

pub fn line_entry_at_pc( &self, otid: Option<Pid>, ) -> Result<LineTableIter, SdbError>

Source

pub fn find_functions( &self, name: &str, ) -> Result<FindFunctionsResult, SdbError>

Source

pub fn breakpoints(&self) -> &RefCell<StoppointCollection>

Source

pub fn function_name_at_address( &self, address: VirtualAddress, ) -> Result<String, SdbError>

Source

pub fn read_dynamic_linker_rendezvous( &self, ) -> Result<Option<r_debug>, SdbError>

Source

pub fn get_elves(&self) -> &RefCell<ElfCollection>

Source

pub fn get_line_entries_by_line( &self, path: &Path, line: usize, ) -> Result<Vec<LineTableIter>, SdbError>

Auto Trait Implementations§

§

impl !Freeze for Target

§

impl !RefUnwindSafe for Target

§

impl !Send for Target

§

impl !Sync for Target

§

impl Unpin for Target

§

impl !UnwindSafe for Target

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.