[Lldb-commits] [lldb] r146902 - in /lldb/trunk: include/lldb/API/SBModule.h include/lldb/API/SBValue.h include/lldb/API/SBValueList.h scripts/Python/interface/SBModule.i scripts/Python/interface/SBValue.i scripts/Python/interface/SBValueList.i source/API/SBModule.cpp source/API/SBValue.cpp source/API/SBValueList.cpp

Jim Ingham jingham at apple.com
Mon Dec 19 12:39:45 PST 2011


Author: jingham
Date: Mon Dec 19 14:39:44 2011
New Revision: 146902

URL: http://llvm.org/viewvc/llvm-project?rev=146902&view=rev
Log:
Add needed Clear methods.
<rdar://problem/10596340>

Modified:
    lldb/trunk/include/lldb/API/SBModule.h
    lldb/trunk/include/lldb/API/SBValue.h
    lldb/trunk/include/lldb/API/SBValueList.h
    lldb/trunk/scripts/Python/interface/SBModule.i
    lldb/trunk/scripts/Python/interface/SBValue.i
    lldb/trunk/scripts/Python/interface/SBValueList.i
    lldb/trunk/source/API/SBModule.cpp
    lldb/trunk/source/API/SBValue.cpp
    lldb/trunk/source/API/SBValueList.cpp

Modified: lldb/trunk/include/lldb/API/SBModule.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBModule.h?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBModule.h (original)
+++ lldb/trunk/include/lldb/API/SBModule.h Mon Dec 19 14:39:44 2011
@@ -36,6 +36,9 @@
     bool
     IsValid () const;
 
+    void
+    Clear();
+
     //------------------------------------------------------------------
     /// Get const accessor for the module file specification.
     ///
@@ -166,7 +169,7 @@
     
     lldb::SBTypeList
     FindTypes (const char* type);
-
+    
 private:
     friend class SBAddress;
     friend class SBFrame;

Modified: lldb/trunk/include/lldb/API/SBValue.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBValue.h?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBValue.h (original)
+++ lldb/trunk/include/lldb/API/SBValue.h Mon Dec 19 14:39:44 2011
@@ -34,6 +34,9 @@
     bool
     IsValid();
     
+    void
+    Clear();
+    
     SBError
     GetError();
 

Modified: lldb/trunk/include/lldb/API/SBValueList.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBValueList.h?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBValueList.h (original)
+++ lldb/trunk/include/lldb/API/SBValueList.h Mon Dec 19 14:39:44 2011
@@ -26,6 +26,9 @@
 
     bool
     IsValid() const;
+    
+    void
+    Clear();
 
     void
     Append (const lldb::SBValue &val_obj);

Modified: lldb/trunk/scripts/Python/interface/SBModule.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBModule.i?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBModule.i (original)
+++ lldb/trunk/scripts/Python/interface/SBModule.i Mon Dec 19 14:39:44 2011
@@ -103,6 +103,9 @@
     bool
     IsValid () const;
 
+    void
+    Clear();
+
     %feature("docstring", "
     //------------------------------------------------------------------
     /// Get const accessor for the module file specification.

Modified: lldb/trunk/scripts/Python/interface/SBValue.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBValue.i?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBValue.i (original)
+++ lldb/trunk/scripts/Python/interface/SBValue.i Mon Dec 19 14:39:44 2011
@@ -67,6 +67,9 @@
     bool
     IsValid();
     
+    void
+    Clear();
+    
     SBError
     GetError();
 

Modified: lldb/trunk/scripts/Python/interface/SBValueList.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBValueList.i?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBValueList.i (original)
+++ lldb/trunk/scripts/Python/interface/SBValueList.i Mon Dec 19 14:39:44 2011
@@ -78,6 +78,9 @@
 
     bool
     IsValid() const;
+    
+    void 
+    Clear();
 
     void
     Append (const lldb::SBValue &val_obj);

Modified: lldb/trunk/source/API/SBModule.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBModule.cpp?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/source/API/SBModule.cpp (original)
+++ lldb/trunk/source/API/SBModule.cpp Mon Dec 19 14:39:44 2011
@@ -58,6 +58,12 @@
     return m_opaque_sp.get() != NULL;
 }
 
+void
+SBModule::Clear()
+{
+    m_opaque_sp.reset();
+}
+
 SBFileSpec
 SBModule::GetFileSpec () const
 {

Modified: lldb/trunk/source/API/SBValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBValue.cpp?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/source/API/SBValue.cpp (original)
+++ lldb/trunk/source/API/SBValue.cpp Mon Dec 19 14:39:44 2011
@@ -75,6 +75,12 @@
     return m_opaque_sp.get() != NULL;
 }
 
+void
+SBValue::Clear()
+{
+    m_opaque_sp.reset();
+}
+
 SBError
 SBValue::GetError()
 {

Modified: lldb/trunk/source/API/SBValueList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBValueList.cpp?rev=146902&r1=146901&r2=146902&view=diff
==============================================================================
--- lldb/trunk/source/API/SBValueList.cpp (original)
+++ lldb/trunk/source/API/SBValueList.cpp Mon Dec 19 14:39:44 2011
@@ -64,6 +64,12 @@
     return (m_opaque_ap.get() != NULL);
 }
 
+void
+SBValueList::Clear()
+{
+    m_opaque_ap.reset();
+}
+
 const SBValueList &
 SBValueList::operator = (const SBValueList &rhs)
 {





More information about the lldb-commits mailing list