Struct gdb_command::GdbCommand
source · [−]pub struct GdbCommand<'a> { /* private fields */ }
Expand description
Struct contains information about arguments for gdb
to run.
Implementations
sourceimpl<'a> GdbCommand<'a>
impl<'a> GdbCommand<'a>
sourcepub fn new(exec_type: &'a ExecType<'_>) -> GdbCommand<'a>
pub fn new(exec_type: &'a ExecType<'_>) -> GdbCommand<'a>
sourcepub fn stdin<T: Into<Option<&'a PathBuf>>>(
&mut self,
file: T
) -> &'a mut GdbCommand<'_>
pub fn stdin<T: Into<Option<&'a PathBuf>>>(
&mut self,
file: T
) -> &'a mut GdbCommand<'_>
Add stdin for executable.
You should call this method before using r
method.
Arguments
file
- path to stdin file
sourcepub fn ex<T: Into<String>>(&mut self, cmd: T) -> &'a mut GdbCommand<'_>
pub fn ex<T: Into<String>>(&mut self, cmd: T) -> &'a mut GdbCommand<'_>
sourcepub fn r(&mut self) -> &'a mut GdbCommand<'_>
pub fn r(&mut self) -> &'a mut GdbCommand<'_>
sourcepub fn c(&mut self) -> &'a mut GdbCommand<'_>
pub fn c(&mut self) -> &'a mut GdbCommand<'_>
Add command to continue execution
sourcepub fn bt(&mut self) -> &'a mut GdbCommand<'_>
pub fn bt(&mut self) -> &'a mut GdbCommand<'_>
Add command to get backtrace (-ex bt)
sourcepub fn disassembly(&mut self) -> &'a mut GdbCommand<'_>
pub fn disassembly(&mut self) -> &'a mut GdbCommand<'_>
Add command to get disassembly (-ex ‘x/16i $pc’)
sourcepub fn regs(&mut self) -> &'a mut GdbCommand<'_>
pub fn regs(&mut self) -> &'a mut GdbCommand<'_>
Add command to get registers (-ex ‘i r’)
sourcepub fn mappings(&mut self) -> &'a mut GdbCommand<'_>
pub fn mappings(&mut self) -> &'a mut GdbCommand<'_>
Add command to get mappings (-ex ‘info proc mappings’)
sourcepub fn cmdline(&mut self) -> &'a mut GdbCommand<'_>
pub fn cmdline(&mut self) -> &'a mut GdbCommand<'_>
Add command to get cmd line.
sourcepub fn env(&mut self) -> &'a mut GdbCommand<'_>
pub fn env(&mut self) -> &'a mut GdbCommand<'_>
Add command to get environment variables
sourcepub fn status(&mut self) -> &'a mut GdbCommand<'_>
pub fn status(&mut self) -> &'a mut GdbCommand<'_>
Add command to get process status
sourcepub fn sources(&mut self) -> &'a mut GdbCommand<'_>
pub fn sources(&mut self) -> &'a mut GdbCommand<'_>
Add command to get info
sourcepub fn bmain(&mut self) -> &'a mut GdbCommand<'_>
pub fn bmain(&mut self) -> &'a mut GdbCommand<'_>
Break at main
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for GdbCommand<'a>
impl<'a> Send for GdbCommand<'a>
impl<'a> Sync for GdbCommand<'a>
impl<'a> Unpin for GdbCommand<'a>
impl<'a> UnwindSafe for GdbCommand<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more