Struct gdb_command::GdbCommand[][src]

pub struct GdbCommand<'a> { /* fields omitted */ }

Struct contains information about arguments for gdb to run.

Implementations

impl<'a> GdbCommand<'a>[src]

pub fn new(exec_type: &'a ExecType<'_>) -> GdbCommand<'a>[src]

Construct GdbCommand from given ExecType.

Arguments

  • type - execution type to run gdb.

pub fn ex(&mut self, cmd: &'a str) -> &'a mut GdbCommand<'_>[src]

Add new gdb command to execute.

Arguments

  • cmd - gdb command parameter (-ex).

pub fn run(&self) -> Result<Vec<u8>>[src]

Run gdb with provided commands and return raw stdout.

pub fn bt(&'a mut self) -> Result<Vec<String>>[src]

Get backtrace from gdb execution as vector of strings.

Trait Implementations

impl<'a> Debug for GdbCommand<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.