Struct lldb::SBAttachInfo
[−]
[src]
pub struct SBAttachInfo { pub raw: SBAttachInfoRef, }
Configuration for attaching to a process.
See SBTarget::attach
.
Fields
raw: SBAttachInfoRef
The underlying raw SBAttachInfoRef
.
Methods
impl SBAttachInfo
[src]
fn new() -> SBAttachInfo
[src]
Construct a new SBAttachInfo
.
fn new_with_pid(pid: lldb_pid_t) -> SBAttachInfo
[src]
Construct a new SBAttachInfo
for a given process ID (pid).
fn new_with_path(path: &str, wait_for: bool, async: bool) -> SBAttachInfo
[src]
Attach to a process by name.
Future calls to SBTarget::attach(...)
will be synchronous or
asynchronous depending on the async
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.async
: Iffalse
, then theSBTarget::attach
call will be synchronous with no way to cancel the attach while it is in progress. Iftrue
, then theSBTarget::attach
call will return immediately and clients are expected to wait for a processeStateStopped
event if a suitable process is eventually found. If the client wants to cancel the event,SBProcess::stop
can be called and aneStateExited
process event will be delivered.
fn wrap(raw: SBAttachInfoRef) -> SBAttachInfo
[src]
Construct a new SBAttachInfo
.
fn process_id(&self) -> lldb_pid_t
[src]
fn set_process_id(&self, pid: lldb_pid_t)
[src]
fn set_executable_path(&self, path: &str)
[src]
fn set_executable_filespec(&self, exe_file: SBFileSpec)
[src]
fn ignore_existing(&self) -> bool
[src]
fn set_ignore_existing(&self, b: bool)
[src]
fn resume_count(&self) -> u32
[src]
fn set_resume_count(&self, c: u32)
[src]
fn listener(&self) -> SBListener
[src]
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 an invalid SBListener
will be
returned (SBListener::is_valid()
will return false
). If a listener
has been set, then the valid listener object will be returned.
fn set_listener(&self, listener: SBListener)
[src]
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
impl Debug for SBAttachInfo
[src]
impl Default for SBAttachInfo
[src]
fn default() -> SBAttachInfo
[src]
Returns the "default value" for a type. Read more