SBBreakpoint

Struct SBBreakpoint 

Source
pub struct SBBreakpoint {
    pub raw: SBBreakpointRef,
}
Expand description

A logical breakpoint and its associated settings.

§To Hit or Not

A breakpoint has multiple ways of controlling whether or not it should be considered active.

A count of how many times a breakpoint has been it is available via SBBreakpoint::hit_count().

§Breakpoint Names and Aliases

Breakpoints can have names associated with them. These are actually more like tags in that the same name can be applied to multiple breakpoints so that a single command invocation can work on multiple breakpoints at once.

A common use case for this is setting up families of breakpoints, for example on malloc, realloc, and free and giving them all a name of memory. Then, you can make it easy for the user enable or disable them all in a single shot.

Names are managed via SBBreakpoint::add_name(), SBBreakpoint::remove_name(), SBBreakpoint::matches_name() and SBBreakpoint::names().

§Breakpoint Locations

Fields§

§raw: SBBreakpointRef

The underlying raw SBBreakpointRef.

Implementations§

Source§

impl SBBreakpoint

Source

pub fn is_valid(&self) -> bool

Check whether or not this is a valid SBBreakpoint value.

Source

pub fn id(&self) -> i32

Source

pub fn is_enabled(&self) -> bool

Source

pub fn set_enabled(&self, enabled: bool)

Source

pub fn is_oneshot(&self) -> bool

Source

pub fn set_oneshot(&self, oneshot: bool)

Source

pub fn is_internal(&self) -> bool

Source

pub fn hit_count(&self) -> u32

Source

pub fn ignore_count(&self) -> u32

Source

pub fn set_ignore_count(&self, count: u32)

Source

pub fn add_name(&self, name: &str) -> bool

Source

pub fn remove_name(&self, name: &str)

Source

pub fn matches_name(&self, name: &str) -> bool

Source

pub fn names(&self) -> SBStringList

Source

pub fn clear_all_breakpoint_sites(&self)

Source

pub fn target(&self) -> Option<SBTarget>

Source

pub fn find_location_by_address( &self, address: lldb_addr_t, ) -> Option<SBBreakpointLocation>

Source

pub fn find_location_id_by_address(&self, address: lldb_addr_t) -> i32

Source

pub fn find_location_by_id(&self, id: i32) -> Option<SBBreakpointLocation>

Source

pub fn locations(&self) -> SBBreakpointLocationIter<'_>

Source

pub fn is_hardware(&self) -> bool

Source

pub fn serialize_to_structured_data(&self) -> SBStructuredData

Trait Implementations§

Source§

impl Clone for SBBreakpoint

Source§

fn clone(&self) -> SBBreakpoint

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 SBBreakpoint

Source§

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

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

impl Drop for SBBreakpoint

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for SBBreakpoint

Source§

impl Sync for SBBreakpoint

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.