pub struct GdbInstanceConfiguration {
pub core_type: CoreType,
pub cores: Vec<usize>,
pub socket_addrs: Vec<SocketAddr>,
}
Expand description
Configuration for a single GDB endpoint
Fields§
§core_type: CoreType
The core type that will be sent to GDB
cores: Vec<usize>
The list of cores to expose. Each ID corresponds to the value passed to Session::core().
socket_addrs: Vec<SocketAddr>
The list of SocketAddr addresses to bind to
Implementations§
Source§impl GdbInstanceConfiguration
impl GdbInstanceConfiguration
Sourcepub fn from_session(
session: &Session,
connection_string: Option<impl Into<String>>,
) -> Vec<Self>
pub fn from_session( session: &Session, connection_string: Option<impl Into<String>>, ) -> Vec<Self>
Build a GDB configuration from a session object. All cores are included.
§Arguments
- session - the Session object to load target information from
- connection_string - The optional connection string to use.
If not specifiedlocalhost:1337
is used. Multiple instances are bound by adding an offset to the supplied port.
§Returns
Vec with the computed configuration
Auto Trait Implementations§
impl Freeze for GdbInstanceConfiguration
impl RefUnwindSafe for GdbInstanceConfiguration
impl Send for GdbInstanceConfiguration
impl Sync for GdbInstanceConfiguration
impl Unpin for GdbInstanceConfiguration
impl UnwindSafe for GdbInstanceConfiguration
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more