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