SBAttachInfo

Struct SBAttachInfo 

Source
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§

Source§

impl SBAttachInfo

Source

pub fn new() -> SBAttachInfo

Construct a new SBAttachInfo.

Source

pub fn new_with_pid(pid: lldb_pid_t) -> SBAttachInfo

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

Source

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: If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches.
  • asynchronous: 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.
Source

pub fn process_id(&self) -> lldb_pid_t

Source

pub fn set_process_id(&self, pid: lldb_pid_t)

Source

pub fn set_executable_path(&self, path: &str)

Source

pub fn set_executable_filespec(&self, exe_file: SBFileSpec)

Source

pub fn wait_for_launch(&self) -> bool

Source

pub fn set_wait_for_launch(&self, wait: bool, asynchronous: bool)

Source

pub fn ignore_existing(&self) -> bool

Source

pub fn set_ignore_existing(&self, b: bool)

Source

pub fn resume_count(&self) -> u32

Source

pub fn set_resume_count(&self, c: u32)

Source

pub fn process_plugin_name(&self) -> Option<&str>

Source

pub fn set_process_plugin_name(&self, plugin: &str)

Source

pub fn user_id(&self) -> Option<u32>

Source

pub fn set_user_id(&self, uid: u32)

Source

pub fn group_id(&self) -> Option<u32>

Source

pub fn set_group_id(&self, gid: u32)

Source

pub fn effective_user_id(&self) -> Option<u32>

Source

pub fn set_effective_user_id(&self, uid: u32)

Source

pub fn effective_group_id(&self) -> Option<u32>

Source

pub fn set_effective_group_id(&self, gid: u32)

Source

pub fn parent_process_id(&self) -> Option<lldb_pid_t>

Source

pub fn set_parent_process_id(&self, ppid: lldb_pid_t)

Source

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.

Source

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

Source§

fn clone(&self) -> SBAttachInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SBAttachInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SBAttachInfo

Source§

fn default() -> SBAttachInfo

Returns the “default value” for a type. Read more
Source§

impl Drop for SBAttachInfo

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for SBAttachInfo

Source§

impl Sync for SBAttachInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.