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
sourceimpl 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 RefUnwindSafe for GdbInstanceConfiguration
impl Send for GdbInstanceConfiguration
impl Sync for GdbInstanceConfiguration
impl Unpin for GdbInstanceConfiguration
impl UnwindSafe for GdbInstanceConfiguration
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