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.
- Enabled. This is controlled via
SBBreakpoint::is_enabled()andSBBreakpoint::set_enabled(). - One shot. If set, this will be disabled once it has
been hit. This is controlled via
SBBreakpoint::is_oneshot()andSBBreakpoint::set_oneshot(). - Ignore count. If set, this breakpoint will be ignored
the first ignore count times that it is hit. This is
controlled via
SBBreakpoint::ignore_count()andSBBreakpoint::set_ignore_count().
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: SBBreakpointRefThe underlying raw SBBreakpointRef.
Implementations§
Source§impl SBBreakpoint
impl SBBreakpoint
pub fn id(&self) -> i32
pub fn is_enabled(&self) -> bool
pub fn set_enabled(&self, enabled: bool)
pub fn is_oneshot(&self) -> bool
pub fn set_oneshot(&self, oneshot: bool)
pub fn is_internal(&self) -> bool
pub fn hit_count(&self) -> u32
pub fn ignore_count(&self) -> u32
pub fn set_ignore_count(&self, count: u32)
pub fn add_name(&self, name: &str) -> bool
pub fn remove_name(&self, name: &str)
pub fn matches_name(&self, name: &str) -> bool
pub fn names(&self) -> SBStringList
pub fn clear_all_breakpoint_sites(&self)
pub fn target(&self) -> Option<SBTarget>
pub fn find_location_by_address( &self, address: lldb_addr_t, ) -> Option<SBBreakpointLocation>
pub fn find_location_id_by_address(&self, address: lldb_addr_t) -> i32
pub fn find_location_by_id(&self, id: i32) -> Option<SBBreakpointLocation>
pub fn locations(&self) -> SBBreakpointLocationIter<'_> ⓘ
pub fn is_hardware(&self) -> bool
pub fn serialize_to_structured_data(&self) -> SBStructuredData
Trait Implementations§
Source§impl Clone for SBBreakpoint
impl Clone for SBBreakpoint
Source§fn clone(&self) -> SBBreakpoint
fn clone(&self) -> SBBreakpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more