Struct lldb::SBAttachInfo [−][src]
pub struct SBAttachInfo {
pub raw: SBAttachInfoRef,
}
Expand description
Configuration for attaching to a process.
See SBTarget::attach()
.
Fields
raw: SBAttachInfoRef
The underlying raw SBAttachInfoRef
.
Implementations
Construct a new SBAttachInfo
.
Construct a new SBAttachInfo
for a given process ID (pid).
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::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.
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.
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
Returns the “default value” for a type. Read more
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more