Struct lldb::SBWatchpoint
source · [−]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
sourceimpl 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
sourceimpl Clone for SBWatchpoint
impl Clone for SBWatchpoint
sourcefn clone(&self) -> SBWatchpoint
fn clone(&self) -> SBWatchpoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SBWatchpoint
impl Debug for SBWatchpoint
sourceimpl Drop for SBWatchpoint
impl Drop for SBWatchpoint
impl Send for SBWatchpoint
impl Sync for SBWatchpoint
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more