pub struct Process { /* private fields */ }Implementations§
Source§impl Process
impl Process
pub fn cleanup_exited_threads( self: &Rc<Self>, main_stop_tid: Pid, ) -> Option<StopReason>
pub fn report_thread_lifecycle_event(self: &Rc<Self>, reason: &StopReason)
pub fn stop_running_threads(self: &Rc<Self>) -> Result<(), SdbError>
pub fn step_instruction( self: &Rc<Self>, otid: Option<Pid>, ) -> Result<StopReason, SdbError>
pub fn wait_on_signal( self: &Rc<Self>, to_await: Pid, ) -> Result<StopReason, SdbError>
pub fn handle_signal( self: &Rc<Self>, reason: StopReason, is_main_stop: bool, ) -> Result<Option<StopReason>, SdbError>
pub fn populate_existing_threads(self: &Rc<Self>)
pub fn create_breakpoint_site( self: &Rc<Self>, address: VirtualAddress, hardware: bool, internal: bool, ) -> Result<Weak<RefCell<BreakpointSite>>, SdbError>
pub fn create_breakpoint_site_from_breakpoint( self: &Rc<Self>, parent: &Rc<RefCell<Breakpoint>>, id: i32, address: VirtualAddress, hardware: bool, internal: bool, ) -> Result<Weak<RefCell<BreakpointSite>>, SdbError>
pub fn create_watchpoint( self: &Rc<Self>, address: VirtualAddress, mode: StoppointMode, size: usize, ) -> Result<Weak<RefCell<WatchPoint>>, SdbError>
pub fn inferior_call( self: &Rc<Self>, func_addr: VirtualAddress, return_addr: VirtualAddress, regs_to_restore: Registers, otid: Option<Pid>, ) -> Result<Registers, SdbError>
pub fn read_string(&self, address: VirtualAddress) -> Result<String, SdbError>
pub fn install_thread_lifecycle_callback<T: Fn(&StopReason) + 'static>( &self, callback: T, )
pub fn resume_all_threads(&self) -> Result<(), SdbError>
pub fn set_current_thread(&self, tid: Pid)
pub fn current_thread(&self) -> Pid
pub fn thread_states(&self) -> &RefCell<HashMap<Pid, Rc<RefCell<ThreadState>>>>
pub fn set_syscall_catch_policy(&self, info: SyscallCatchPolicy)
pub fn pid(&self) -> Pid
pub fn resume(&self, otid: Option<Pid>) -> Result<(), SdbError>
pub fn state(&self) -> ProcessState
pub fn launch( path: &Path, debug: bool, stdout_replacement: Option<i32>, ) -> Result<Rc<Process>, SdbError>
pub fn attach(pid: Pid) -> Result<Rc<Process>, SdbError>
pub fn write_user_area( &self, offset: usize, data: u64, otid: Option<Pid>, ) -> Result<(), SdbError>
pub fn get_registers(&self, otid: Option<Pid>) -> Rc<RefCell<Registers>>
pub fn read_all_registers(&self, tid: Pid) -> Result<(), SdbError>
pub fn write_gprs( &self, gprs: &mut user_regs_struct, otid: Option<Pid>, ) -> Result<(), SdbError>
pub fn write_fprs( &self, fprs: &mut user_fpregs_struct, otid: Option<Pid>, ) -> Result<(), SdbError>
pub fn get_pc(&self, otid: Option<Pid>) -> VirtualAddress
pub fn breakpoint_sites(&self) -> Rc<RefCell<StoppointCollection>>
pub fn set_pc( &self, address: VirtualAddress, otid: Option<Pid>, ) -> Result<(), SdbError>
pub fn read_memory( &self, address: VirtualAddress, amount: usize, ) -> Result<Vec<u8>, SdbError>
pub fn write_memory( &self, address: VirtualAddress, data: &[u8], ) -> Result<(), SdbError>
pub fn read_memory_as<T: Pod>( &self, address: VirtualAddress, ) -> Result<T, SdbError>
pub fn read_memory_without_trap( &self, address: VirtualAddress, amount: usize, ) -> Result<Vec<u8>, SdbError>
pub fn set_hardware_breakpoint( &self, _id: i32, address: VirtualAddress, ) -> Result<i32, SdbError>
pub fn clear_hardware_stoppoint(&self, index: i32) -> Result<(), SdbError>
pub fn set_watchpoint( &self, _id: i32, address: VirtualAddress, mode: StoppointMode, size: usize, ) -> Result<i32, SdbError>
pub fn watchpoints(&self) -> Rc<RefCell<StoppointCollection>>
pub fn get_current_hardware_stoppoint( &self, otid: Option<Pid>, ) -> Result<StoppointId, SdbError>
pub fn get_auxv(&self) -> HashMap<i32, u64>
pub fn set_target(&self, target: &Rc<Target>)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Process
impl !RefUnwindSafe for Process
impl !Send for Process
impl !Sync for Process
impl Unpin for Process
impl !UnwindSafe for Process
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more