pub struct SBAttachInfo {
pub raw: SBAttachInfoRef,
}Expand description
Configuration for attaching to a process.
See SBTarget::attach().
Fields§
§raw: SBAttachInfoRefThe underlying raw SBAttachInfoRef.
Implementations§
Source§impl SBAttachInfo
impl SBAttachInfo
Sourcepub fn new() -> SBAttachInfo
pub fn new() -> SBAttachInfo
Construct a new SBAttachInfo.
Sourcepub fn new_with_pid(pid: lldb_pid_t) -> SBAttachInfo
pub fn new_with_pid(pid: lldb_pid_t) -> SBAttachInfo
Construct a new SBAttachInfo for a given process ID (pid).
Sourcepub fn new_with_path(
path: &str,
wait_for: bool,
asynchronous: bool,
) -> SBAttachInfo
pub fn new_with_path( path: &str, wait_for: bool, asynchronous: bool, ) -> SBAttachInfo
Attach to a process by name.
Future calls to SBTarget::attach(...) will be synchronous or
asynchronous depending on the asynchronous argument.
path: A full or partial name for the process to attach to.wait_for: Iffalse, attach to an existing process whose name matches. Iftrue, then wait for the next process whose name matches.asynchronous: Iffalse, then theSBTarget::attachcall will be synchronous with no way to cancel the attach while it is in progress. Iftrue, then theSBTarget::attachcall will return immediately and clients are expected to wait for a processeStateStoppedevent if a suitable process is eventually found. If the client wants to cancel the event,SBProcess::stopcan be called and aneStateExitedprocess event will be delivered.
pub fn process_id(&self) -> lldb_pid_t
pub fn set_process_id(&self, pid: lldb_pid_t)
pub fn set_executable_path(&self, path: &str)
pub fn set_executable_filespec(&self, exe_file: SBFileSpec)
pub fn wait_for_launch(&self) -> bool
pub fn set_wait_for_launch(&self, wait: bool, asynchronous: bool)
pub fn ignore_existing(&self) -> bool
pub fn set_ignore_existing(&self, b: bool)
pub fn resume_count(&self) -> u32
pub fn set_resume_count(&self, c: u32)
pub fn process_plugin_name(&self) -> Option<&str>
pub fn set_process_plugin_name(&self, plugin: &str)
pub fn user_id(&self) -> Option<u32>
pub fn set_user_id(&self, uid: u32)
pub fn group_id(&self) -> Option<u32>
pub fn set_group_id(&self, gid: u32)
pub fn effective_user_id(&self) -> Option<u32>
pub fn set_effective_user_id(&self, uid: u32)
pub fn effective_group_id(&self) -> Option<u32>
pub fn set_effective_group_id(&self, gid: u32)
pub fn parent_process_id(&self) -> Option<lldb_pid_t>
pub fn set_parent_process_id(&self, ppid: lldb_pid_t)
Sourcepub fn listener(&self) -> Option<SBListener>
pub fn listener(&self) -> Option<SBListener>
Get the listener that will be used to receive process events.
If no listener has been set via a call to
SBAttachInfo::set_listener(), then None will be returned.
If a listener has been set, then the listener object will be returned.
Sourcepub fn set_listener(&self, listener: SBListener)
pub fn set_listener(&self, listener: SBListener)
Set the listener that will be used to receive process events.
By default the SBDebugger, which has a listener,
that the SBTarget belongs to will listen for the
process events. Calling this function allows a different
listener to be used to listen for process events.
Trait Implementations§
Source§impl Clone for SBAttachInfo
impl Clone for SBAttachInfo
Source§fn clone(&self) -> SBAttachInfo
fn clone(&self) -> SBAttachInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more