pub struct SBWatchpoint {
pub raw: SBWatchpointRef,
}
Expand description
An instance of a watch point for a specific target program.
A watchpoint is determined by the address the byte size that resulted in this particular instantiation. Each watchpoint has its own settable options.
§To Hit or Not
A watchpoint has multiple ways of controlling whether or not it should be considered active.
- Enabled. This is controlled via
SBWatchpoint::is_enabled()
andSBWatchpoint::set_enabled()
. - Ignore count. If set, this watchpoint will be ignored
the first ignore count times that it is hit. This is
controlled via
SBWatchpoint::ignore_count()
andSBWatchpoint::set_ignore_count()
.
A count of how many times a watchpoint has been it is
available via SBWatchpoint::hit_count()
.
Fields§
§raw: SBWatchpointRef
The underlying raw SBWatchpointRef
.
Implementations§
Source§impl SBWatchpoint
impl SBWatchpoint
pub fn error(&self) -> Option<SBError>
pub fn id(&self) -> i32
pub fn hardware_index(&self) -> Option<i32>
pub fn watch_address(&self) -> lldb_addr_t
pub fn watch_size(&self) -> usize
pub fn is_enabled(&self) -> bool
pub fn set_enabled(&self, enabled: bool)
pub fn hit_count(&self) -> u32
pub fn ignore_count(&self) -> u32
pub fn set_ignore_count(&self, count: u32)
Trait Implementations§
Source§impl Clone for SBWatchpoint
impl Clone for SBWatchpoint
Source§fn clone(&self) -> SBWatchpoint
fn clone(&self) -> SBWatchpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SBWatchpoint
impl Debug for SBWatchpoint
Source§impl Drop for SBWatchpoint
impl Drop for SBWatchpoint
impl Send for SBWatchpoint
impl Sync for SBWatchpoint
Auto Trait Implementations§
impl Freeze for SBWatchpoint
impl RefUnwindSafe for SBWatchpoint
impl Unpin for SBWatchpoint
impl UnwindSafe for SBWatchpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more