[][src]Struct gdbstub::GdbStub

pub struct GdbStub<T: Target, C: Connection> { /* fields omitted */ }

Facilitates the remote debugging of a Target using the GDB Remote Serial Protocol over a given Connection.

Methods

impl<T: Target, C: Connection> GdbStub<T, C>[src]

pub fn new(conn: C) -> GdbStub<T, C>[src]

Create a new GdbStub using the provided connection.

pub fn run(&mut self, target: &mut T) -> Result<TargetState, Error<T, C>>[src]

Starts a GDB remote debugging session.

Returns once the GDB client cleanly closes the debugging session (via the GDB quit command).

Auto Trait Implementations

impl<T, C> Send for GdbStub<T, C> where
    C: Send,
    T: Send,
    <T as Target>::Usize: Send

impl<T, C> Sync for GdbStub<T, C> where
    C: Sync,
    T: Sync,
    <T as Target>::Usize: Sync

impl<T, C> Unpin for GdbStub<T, C> where
    C: Unpin,
    T: Unpin,
    <T as Target>::Usize: Unpin

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.