diff options
author | Greg Clayton <gclayton@apple.com> | 2011-10-13 18:08:26 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-10-13 18:08:26 +0000 |
commit | 1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293 (patch) | |
tree | 272a2761ade581bba6c9641267cd4bd6902b85c7 /lldb/scripts/Python/interface/SBWatchpoint.i | |
parent | d5a9a3afafce0b1f2519250bd47701eab68edc46 (diff) | |
download | bcm5719-llvm-1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293.tar.gz bcm5719-llvm-1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293.zip |
Cleaned up the SBWatchpoint public API.
llvm-svn: 141876
Diffstat (limited to 'lldb/scripts/Python/interface/SBWatchpoint.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBWatchpoint.i | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBWatchpoint.i b/lldb/scripts/Python/interface/SBWatchpoint.i new file mode 100644 index 00000000000..5ddba459aaa --- /dev/null +++ b/lldb/scripts/Python/interface/SBWatchpoint.i @@ -0,0 +1,71 @@ +//===-- SWIG Interface for SBWatchpoint -----------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +namespace lldb { + +%feature("docstring", +"Represents an instance of watchpoint location for a specific target program. + +A watchpoint location is determined by the address and the byte size that +resulted in this particular instantiation. Each watchpoint location has its +settable options. + +See also SBTarget.watchpoint_location_iter() for for example usage of iterating +through the watchpoint locations of the target." +) SBWatchpoint; +class SBWatchpoint +{ +public: + + SBWatchpoint (); + + SBWatchpoint (const lldb::SBWatchpoint &rhs); + + ~SBWatchpoint (); + + watch_id_t + GetID (); + + bool + IsValid(); + + %feature("docstring", " + //------------------------------------------------------------------ + /// With -1 representing an invalid hardware index. + //------------------------------------------------------------------ + ") GetHardwareIndex; + int32_t + GetHardwareIndex (); + + lldb::addr_t + GetWatchAddress (); + + size_t + GetWatchSize(); + + void + SetEnabled(bool enabled); + + bool + IsEnabled (); + + uint32_t + GetHitCount (); + + uint32_t + GetIgnoreCount (); + + void + SetIgnoreCount (uint32_t n); + + bool + GetDescription (lldb::SBStream &description, DescriptionLevel level); +}; + +} // namespace lldb |