summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-10-13 18:08:26 +0000
committerGreg Clayton <gclayton@apple.com>2011-10-13 18:08:26 +0000
commit1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293 (patch)
tree272a2761ade581bba6c9641267cd4bd6902b85c7 /lldb/scripts/Python/interface
parentd5a9a3afafce0b1f2519250bd47701eab68edc46 (diff)
downloadbcm5719-llvm-1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293.tar.gz
bcm5719-llvm-1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293.zip
Cleaned up the SBWatchpoint public API.
llvm-svn: 141876
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i40
-rw-r--r--lldb/scripts/Python/interface/SBValue.i6
-rw-r--r--lldb/scripts/Python/interface/SBWatchpoint.i (renamed from lldb/scripts/Python/interface/SBWatchpointLocation.i)24
3 files changed, 40 insertions, 30 deletions
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index f93128d2e19..9c628a621ff 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -442,28 +442,32 @@ public:
DeleteAllBreakpoints ();
uint32_t
- GetNumWatchpointLocations () const;
-
- lldb::SBWatchpointLocation
- GetLastCreatedWatchpointLocation ();
-
- lldb::SBWatchpointLocation
- GetWatchpointLocationAtIndex (uint32_t idx) const;
-
+ GetNumWatchpoints () const;
+
+ lldb::SBWatchpoint
+ GetWatchpointAtIndex (uint32_t idx) const;
+
bool
- WatchpointLocationDelete (watch_id_t watch_id);
-
- lldb::SBWatchpointLocation
- FindWatchpointLocationByID (watch_id_t watch_id);
-
+ DeleteWatchpoint (lldb::watch_id_t watch_id);
+
+ lldb::SBWatchpoint
+ FindWatchpointByID (lldb::watch_id_t watch_id);
+
bool
- EnableAllWatchpointLocations ();
-
+ EnableAllWatchpoints ();
+
bool
- DisableAllWatchpointLocations ();
-
+ DisableAllWatchpoints ();
+
bool
- DeleteAllWatchpointLocations ();
+ DeleteAllWatchpoints ();
+
+ lldb::SBWatchpoint
+ WatchAddress (lldb::addr_t addr,
+ size_t size,
+ bool read,
+ bool write);
+
lldb::SBBroadcaster
GetBroadcaster () const;
diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i
index 8792464b245..439e0abb7f7 100644
--- a/lldb/scripts/Python/interface/SBValue.i
+++ b/lldb/scripts/Python/interface/SBValue.i
@@ -278,6 +278,12 @@ public:
lldb::SBFrame
GetFrame();
+ lldb::SBWatchpoint
+ Watch (bool resolve_location, bool read, bool write);
+
+ lldb::SBWatchpoint
+ WatchPointee (bool resolve_location, bool read, bool write);
+
bool
GetDescription (lldb::SBStream &description);
diff --git a/lldb/scripts/Python/interface/SBWatchpointLocation.i b/lldb/scripts/Python/interface/SBWatchpoint.i
index a5e21ddb894..5ddba459aaa 100644
--- a/lldb/scripts/Python/interface/SBWatchpointLocation.i
+++ b/lldb/scripts/Python/interface/SBWatchpoint.i
@@ -1,4 +1,4 @@
-//===-- SWIG Interface for SBWatchpointLocation -----------------*- C++ -*-===//
+//===-- SWIG Interface for SBWatchpoint -----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -18,22 +18,22 @@ settable options.
See also SBTarget.watchpoint_location_iter() for for example usage of iterating
through the watchpoint locations of the target."
-) SBWatchpointLocation;
-class SBWatchpointLocation
+) SBWatchpoint;
+class SBWatchpoint
{
public:
- SBWatchpointLocation ();
+ SBWatchpoint ();
- SBWatchpointLocation (const lldb::SBWatchpointLocation &rhs);
+ SBWatchpoint (const lldb::SBWatchpoint &rhs);
- ~SBWatchpointLocation ();
+ ~SBWatchpoint ();
watch_id_t
- GetID () const;
+ GetID ();
bool
- IsValid() const;
+ IsValid();
%feature("docstring", "
//------------------------------------------------------------------
@@ -41,13 +41,13 @@ public:
//------------------------------------------------------------------
") GetHardwareIndex;
int32_t
- GetHardwareIndex () const;
+ GetHardwareIndex ();
lldb::addr_t
- GetWatchAddress () const;
+ GetWatchAddress ();
size_t
- GetWatchSize() const;
+ GetWatchSize();
void
SetEnabled(bool enabled);
@@ -56,7 +56,7 @@ public:
IsEnabled ();
uint32_t
- GetHitCount () const;
+ GetHitCount ();
uint32_t
GetIgnoreCount ();
OpenPOWER on IntegriCloud