Struct lldb::SBAttachInfo [] [src]

pub struct SBAttachInfo {
    pub raw: SBAttachInfoRef,
}

Configuration for attaching to a process.

See SBTarget::attach.

Fields

The underlying raw SBAttachInfoRef.

Methods

impl SBAttachInfo
[src]

[src]

Construct a new SBAttachInfo.

[src]

Construct a new SBAttachInfo for a given process ID (pid).

[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: If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches.
  • async: If false, then the SBTarget::attach call will be synchronous with no way to cancel the attach while it is in progress. If true, then the SBTarget::attach call will return immediately and clients are expected to wait for a process eStateStopped event if a suitable process is eventually found. If the client wants to cancel the event, SBProcess::stop can be called and an eStateExited process event will be delivered.

[src]

Construct a new SBAttachInfo.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[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.

[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]

[src]

Formats the value using the given formatter.

impl Default for SBAttachInfo
[src]

[src]

Returns the "default value" for a type. Read more

impl Drop for SBAttachInfo
[src]

[src]

Executes the destructor for this type. Read more