summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/API/SBModule.h5
-rw-r--r--lldb/include/lldb/API/SBValue.h3
-rw-r--r--lldb/include/lldb/API/SBValueList.h3
-rw-r--r--lldb/scripts/Python/interface/SBModule.i3
-rw-r--r--lldb/scripts/Python/interface/SBValue.i3
-rw-r--r--lldb/scripts/Python/interface/SBValueList.i3
-rw-r--r--lldb/source/API/SBModule.cpp6
-rw-r--r--lldb/source/API/SBValue.cpp6
-rw-r--r--lldb/source/API/SBValueList.cpp6
9 files changed, 37 insertions, 1 deletions
diff --git a/lldb/include/lldb/API/SBModule.h b/lldb/include/lldb/API/SBModule.h
index de7cd3af53a..ebe6c3f61e1 100644
--- a/lldb/include/lldb/API/SBModule.h
+++ b/lldb/include/lldb/API/SBModule.h
@@ -36,6 +36,9 @@ public:
bool
IsValid () const;
+ void
+ Clear();
+
//------------------------------------------------------------------
/// Get const accessor for the module file specification.
///
@@ -166,7 +169,7 @@ public:
lldb::SBTypeList
FindTypes (const char* type);
-
+
private:
friend class SBAddress;
friend class SBFrame;
diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h
index f9e70994380..3abd8a8f97e 100644
--- a/lldb/include/lldb/API/SBValue.h
+++ b/lldb/include/lldb/API/SBValue.h
@@ -34,6 +34,9 @@ public:
bool
IsValid();
+ void
+ Clear();
+
SBError
GetError();
diff --git a/lldb/include/lldb/API/SBValueList.h b/lldb/include/lldb/API/SBValueList.h
index 578f62e6d7d..470bae16f04 100644
--- a/lldb/include/lldb/API/SBValueList.h
+++ b/lldb/include/lldb/API/SBValueList.h
@@ -26,6 +26,9 @@ public:
bool
IsValid() const;
+
+ void
+ Clear();
void
Append (const lldb::SBValue &val_obj);
diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i
index 01bf470f9c8..08e5c184114 100644
--- a/lldb/scripts/Python/interface/SBModule.i
+++ b/lldb/scripts/Python/interface/SBModule.i
@@ -103,6 +103,9 @@ public:
bool
IsValid () const;
+ void
+ Clear();
+
%feature("docstring", "
//------------------------------------------------------------------
/// Get const accessor for the module file specification.
diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i
index a1ab884c589..a9878a20b63 100644
--- a/lldb/scripts/Python/interface/SBValue.i
+++ b/lldb/scripts/Python/interface/SBValue.i
@@ -67,6 +67,9 @@ public:
bool
IsValid();
+ void
+ Clear();
+
SBError
GetError();
diff --git a/lldb/scripts/Python/interface/SBValueList.i b/lldb/scripts/Python/interface/SBValueList.i
index 75c8f6bb49b..afd48915e55 100644
--- a/lldb/scripts/Python/interface/SBValueList.i
+++ b/lldb/scripts/Python/interface/SBValueList.i
@@ -78,6 +78,9 @@ public:
bool
IsValid() const;
+
+ void
+ Clear();
void
Append (const lldb::SBValue &val_obj);
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index c80d952e312..ea893df1acb 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -58,6 +58,12 @@ SBModule::IsValid () const
return m_opaque_sp.get() != NULL;
}
+void
+SBModule::Clear()
+{
+ m_opaque_sp.reset();
+}
+
SBFileSpec
SBModule::GetFileSpec () const
{
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index daaeea089ca..876670a510c 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -75,6 +75,12 @@ SBValue::IsValid ()
return m_opaque_sp.get() != NULL;
}
+void
+SBValue::Clear()
+{
+ m_opaque_sp.reset();
+}
+
SBError
SBValue::GetError()
{
diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp
index 4e0fea5688c..c5932b02c86 100644
--- a/lldb/source/API/SBValueList.cpp
+++ b/lldb/source/API/SBValueList.cpp
@@ -64,6 +64,12 @@ SBValueList::IsValid () const
return (m_opaque_ap.get() != NULL);
}
+void
+SBValueList::Clear()
+{
+ m_opaque_ap.reset();
+}
+
const SBValueList &
SBValueList::operator = (const SBValueList &rhs)
{
OpenPOWER on IntegriCloud