[Lldb-commits] [lldb] 18f1c1a - Revert "[lldb/docs] Silence warnings when generating website"

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 29 05:58:03 PDT 2023


Author: Med Ismail Bennani
Date: 2023-08-29T13:57:35+01:00
New Revision: 18f1c1ace7a6099f3e8e56cf4b81aa0f64a7dd23

URL: https://github.com/llvm/llvm-project/commit/18f1c1ace7a6099f3e8e56cf4b81aa0f64a7dd23
DIFF: https://github.com/llvm/llvm-project/commit/18f1c1ace7a6099f3e8e56cf4b81aa0f64a7dd23.diff

LOG: Revert "[lldb/docs] Silence warnings when generating website"

This reverts commit 498b59e01133bed16c72dd939a9daa8ae1f359e4 since it
introduces a build failure:

https://lab.llvm.org/buildbot/#/builders/68/builds/58995

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>

Added: 
    

Modified: 
    lldb/bindings/interface/SBAddressExtensions.i
    lldb/bindings/interface/SBBlockExtensions.i
    lldb/bindings/interface/SBBreakpointExtensions.i
    lldb/bindings/interface/SBBreakpointLocationExtensions.i
    lldb/bindings/interface/SBBreakpointNameExtensions.i
    lldb/bindings/interface/SBCommandReturnObjectExtensions.i
    lldb/bindings/interface/SBCompileUnitExtensions.i
    lldb/bindings/interface/SBDataExtensions.i
    lldb/bindings/interface/SBDebuggerExtensions.i
    lldb/bindings/interface/SBDeclarationExtensions.i
    lldb/bindings/interface/SBErrorExtensions.i
    lldb/bindings/interface/SBExecutionContextExtensions.i
    lldb/bindings/interface/SBFileExtensions.i
    lldb/bindings/interface/SBFileSpecExtensions.i
    lldb/bindings/interface/SBFrameExtensions.i
    lldb/bindings/interface/SBFunctionExtensions.i
    lldb/bindings/interface/SBInstructionExtensions.i
    lldb/bindings/interface/SBInstructionListExtensions.i
    lldb/bindings/interface/SBLineEntryExtensions.i
    lldb/bindings/interface/SBMemoryRegionInfoExtensions.i
    lldb/bindings/interface/SBModuleExtensions.i
    lldb/bindings/interface/SBModuleSpecExtensions.i
    lldb/bindings/interface/SBProcessDocstrings.i
    lldb/bindings/interface/SBProcessExtensions.i
    lldb/bindings/interface/SBScriptObjectExtensions.i
    lldb/bindings/interface/SBSectionExtensions.i
    lldb/bindings/interface/SBStreamExtensions.i
    lldb/bindings/interface/SBStringListExtensions.i
    lldb/bindings/interface/SBSymbolContextExtensions.i
    lldb/bindings/interface/SBSymbolContextListExtensions.i
    lldb/bindings/interface/SBSymbolExtensions.i
    lldb/bindings/interface/SBTargetExtensions.i
    lldb/bindings/interface/SBThreadExtensions.i
    lldb/bindings/interface/SBTypeCategoryExtensions.i
    lldb/bindings/interface/SBTypeEnumMemberExtensions.i
    lldb/bindings/interface/SBTypeExtensions.i
    lldb/bindings/interface/SBTypeFilterExtensions.i
    lldb/bindings/interface/SBTypeFormatExtensions.i
    lldb/bindings/interface/SBTypeNameSpecifierExtensions.i
    lldb/bindings/interface/SBTypeSummaryExtensions.i
    lldb/bindings/interface/SBTypeSyntheticExtensions.i
    lldb/bindings/interface/SBUnixSignalsExtensions.i
    lldb/bindings/interface/SBValueExtensions.i
    lldb/bindings/interface/SBValueListExtensions.i
    lldb/bindings/interface/SBWatchpointExtensions.i
    lldb/bindings/interfaces.swig
    lldb/bindings/python/python-extensions.swig
    lldb/bindings/python/python.swig
    lldb/docs/conf.py
    lldb/docs/python_api.rst

Removed: 
    lldb/bindings/interface/SBAttachInfoExtensions.i
    lldb/bindings/interface/SBBreakpointListExtensions.i
    lldb/bindings/interface/SBBroadcastExtensions.i
    lldb/bindings/interface/SBCommandInterpreterExtensions.i
    lldb/bindings/interface/SBCommandInterpreterRunOptionsExtensions.i
    lldb/bindings/interface/SBCommunicationExtensions.i
    lldb/bindings/interface/SBEnvironmentExtensions.i
    lldb/bindings/interface/SBEventExtensions.i
    lldb/bindings/interface/SBExpressionOptionsExtensions.i
    lldb/bindings/interface/SBFileSpecListExtensions.i
    lldb/bindings/interface/SBHostOSExtensions.i
    lldb/bindings/interface/SBLanguageRuntimeExtensions.i
    lldb/bindings/interface/SBLaunchInfoExtensions.i
    lldb/bindings/interface/SBListenerExtensions.i
    lldb/bindings/interface/SBMemoryRegionInfoListExtensions.i
    lldb/bindings/interface/SBModuleSpecListExtensions.i
    lldb/bindings/interface/SBPlatformConnectOptionsExtensions.i
    lldb/bindings/interface/SBPlatformExtensions.i
    lldb/bindings/interface/SBPlatformShellCommandExtensions.i
    lldb/bindings/interface/SBProcessInfoExtensions.i
    lldb/bindings/interface/SBQueueExtensions.i
    lldb/bindings/interface/SBQueueItemExtensions.i
    lldb/bindings/interface/SBReproducerExtensions.i
    lldb/bindings/interface/SBSourceManagerExtensions.i
    lldb/bindings/interface/SBStructuredDataExtensions.i
    lldb/bindings/interface/SBThreadCollectionExtensions.i
    lldb/bindings/interface/SBThreadPlanExtensions.i
    lldb/bindings/interface/SBTraceCursorExtensions.i
    lldb/bindings/interface/SBTraceExtensions.i
    lldb/bindings/interface/SBTypeSummaryOptionsExtensions.i
    lldb/bindings/interface/SBVariablesOptionsExtensions.i


################################################################################
diff  --git a/lldb/bindings/interface/SBAddressExtensions.i b/lldb/bindings/interface/SBAddressExtensions.i
index 8f041f5bc9a6b4..9aeba3ab45aca3 100644
--- a/lldb/bindings/interface/SBAddressExtensions.i
+++ b/lldb/bindings/interface/SBAddressExtensions.i
@@ -7,12 +7,6 @@ STRING_EXTENSION_OUTSIDE(SBAddress)
     %pythoncode%{
     def __eq__(self, other):
       return not self.__ne__(other)
-
-    def __len__(self):
-        pass
-
-    def __iter__(self):
-        pass
     %}
 
     %pythoncode %{

diff  --git a/lldb/bindings/interface/SBAttachInfoExtensions.i b/lldb/bindings/interface/SBAttachInfoExtensions.i
deleted file mode 100644
index 570c79e11e00cc..00000000000000
--- a/lldb/bindings/interface/SBAttachInfoExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBAttachInfo)
-
-%extend lldb::SBAttachInfo {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBBlockExtensions.i b/lldb/bindings/interface/SBBlockExtensions.i
index f7507c74cef9fe..e83a416b231894 100644
--- a/lldb/bindings/interface/SBBlockExtensions.i
+++ b/lldb/bindings/interface/SBBlockExtensions.i
@@ -3,21 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBBlock)
 %extend lldb::SBBlock {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __int__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         def get_range_at_index(self, idx):
             if idx < self.GetNumRanges():
                 return [self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)]

diff  --git a/lldb/bindings/interface/SBBreakpointExtensions.i b/lldb/bindings/interface/SBBreakpointExtensions.i
index d4656dd35fb433..6bc781a327778d 100644
--- a/lldb/bindings/interface/SBBreakpointExtensions.i
+++ b/lldb/bindings/interface/SBBreakpointExtensions.i
@@ -44,15 +44,6 @@ STRING_EXTENSION_OUTSIDE(SBBreakpoint)
             object.'''
             return self.GetNumLocations()
 
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         locations = property(get_breakpoint_location_list, None, doc='''A read only property that returns a list() of lldb.SBBreakpointLocation objects for this breakpoint.''')
         location = property(get_locations_access_object, None, doc='''A read only property that returns an object that can access locations by index (not location ID) (location = bkpt.location[12]).''')
         id = property(GetID, None, doc='''A read only property that returns the ID of this breakpoint.''')

diff  --git a/lldb/bindings/interface/SBBreakpointListExtensions.i b/lldb/bindings/interface/SBBreakpointListExtensions.i
deleted file mode 100644
index e376b07ba5fe9c..00000000000000
--- a/lldb/bindings/interface/SBBreakpointListExtensions.i
+++ /dev/null
@@ -1,29 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBBreakpointList)
-
-%extend lldb::SBBreakpointList {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-        return not self.__ne__(other)
-
-    def __int__(self):
-        pass
-
-    def __len__(self):
-        '''Return the number of breakpoints in a lldb.SBBreakpointList object.'''
-        return self.GetSize()
-
-    def __hex__(self):
-        pass
-
-    def __oct__(self):
-        pass
-
-    def __iter__(self):
-        '''Iterate over all breakpoints in a lldb.SBBreakpointList object.'''
-        return lldb_iter(self, 'GetSize', 'GetBreakpointAtIndex')
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBBreakpointLocationExtensions.i b/lldb/bindings/interface/SBBreakpointLocationExtensions.i
index 6db7823cabda3f..e076499fad64ba 100644
--- a/lldb/bindings/interface/SBBreakpointLocationExtensions.i
+++ b/lldb/bindings/interface/SBBreakpointLocationExtensions.i
@@ -1,27 +1 @@
 STRING_EXTENSION_LEVEL_OUTSIDE(SBBreakpointLocation, lldb::eDescriptionLevelFull)
-
-%extend lldb::SBBreakpointLocation {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBBreakpointNameExtensions.i b/lldb/bindings/interface/SBBreakpointNameExtensions.i
index 3f3e71d17a1d97..19ecb7e818b8cf 100644
--- a/lldb/bindings/interface/SBBreakpointNameExtensions.i
+++ b/lldb/bindings/interface/SBBreakpointNameExtensions.i
@@ -1,27 +1 @@
 STRING_EXTENSION_OUTSIDE(SBBreakpointName)
-
-%extend lldb::SBBreakpointName {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBBroadcastExtensions.i b/lldb/bindings/interface/SBBroadcastExtensions.i
deleted file mode 100644
index 6bcb84598fb46c..00000000000000
--- a/lldb/bindings/interface/SBBroadcastExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBBroadcaster)
-
-%extend lldb::SBBroadcaster {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBCommandInterpreterExtensions.i b/lldb/bindings/interface/SBCommandInterpreterExtensions.i
deleted file mode 100644
index 91d5b7bfefbd32..00000000000000
--- a/lldb/bindings/interface/SBCommandInterpreterExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBCommandInterpreter)
-
-%extend lldb::SBCommandInterpreter {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBCommandInterpreterRunOptionsExtensions.i b/lldb/bindings/interface/SBCommandInterpreterRunOptionsExtensions.i
deleted file mode 100644
index 358b2ba500c19b..00000000000000
--- a/lldb/bindings/interface/SBCommandInterpreterRunOptionsExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBCommandInterpreterRunOptions)
-
-%extend lldb::SBCommandInterpreterRunOptions {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBCommandReturnObjectExtensions.i b/lldb/bindings/interface/SBCommandReturnObjectExtensions.i
index e17a4bb2877c3b..ab9b376467b2b2 100644
--- a/lldb/bindings/interface/SBCommandReturnObjectExtensions.i
+++ b/lldb/bindings/interface/SBCommandReturnObjectExtensions.i
@@ -1,30 +1,6 @@
 STRING_EXTENSION_OUTSIDE(SBCommandReturnObject)
 
 %extend lldb::SBCommandReturnObject {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-
     // transfer_ownership does nothing, and is here for compatibility with
     // old scripts.  Ownership is tracked by reference count in the ordinary way.
 

diff  --git a/lldb/bindings/interface/SBCommunicationExtensions.i b/lldb/bindings/interface/SBCommunicationExtensions.i
deleted file mode 100644
index 0e94f7f3e6407a..00000000000000
--- a/lldb/bindings/interface/SBCommunicationExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBCommunication)
-
-%extend lldb::SBCommunication {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBCompileUnitExtensions.i b/lldb/bindings/interface/SBCompileUnitExtensions.i
index 91c6b67161ed0e..c602e9c6550114 100644
--- a/lldb/bindings/interface/SBCompileUnitExtensions.i
+++ b/lldb/bindings/interface/SBCompileUnitExtensions.i
@@ -3,15 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBCompileUnit)
 %extend lldb::SBCompileUnit {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all line entries in a lldb.SBCompileUnit object.'''
             return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex')

diff  --git a/lldb/bindings/interface/SBDataExtensions.i b/lldb/bindings/interface/SBDataExtensions.i
index 20b28825628c13..cf6f40a83fa605 100644
--- a/lldb/bindings/interface/SBDataExtensions.i
+++ b/lldb/bindings/interface/SBDataExtensions.i
@@ -3,23 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBData)
 %extend lldb::SBData {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            return self.GetByteSize()
-
-        def __iter__(self):
-            pass
 
         class read_data_helper:
             def __init__(self, sbdata, readerfunc, item_size):

diff  --git a/lldb/bindings/interface/SBDebuggerExtensions.i b/lldb/bindings/interface/SBDebuggerExtensions.i
index fc20de00f8f73e..ff2a0359b13638 100644
--- a/lldb/bindings/interface/SBDebuggerExtensions.i
+++ b/lldb/bindings/interface/SBDebuggerExtensions.i
@@ -24,15 +24,6 @@ STRING_EXTENSION_OUTSIDE(SBDebugger)
                 file = sys.stderr
             self.SetErrorFile(SBFile.Create(file, borrow=True))
 
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all targets in a lldb.SBDebugger object.'''
             return lldb_iter(self, 'GetNumTargets', 'GetTargetAtIndex')

diff  --git a/lldb/bindings/interface/SBDeclarationExtensions.i b/lldb/bindings/interface/SBDeclarationExtensions.i
index 846015c497ab03..9e69dc9ccb5818 100644
--- a/lldb/bindings/interface/SBDeclarationExtensions.i
+++ b/lldb/bindings/interface/SBDeclarationExtensions.i
@@ -3,21 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBDeclaration)
 %extend lldb::SBDeclaration {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
-
             file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
             line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
             column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')

diff  --git a/lldb/bindings/interface/SBEnvironmentExtensions.i b/lldb/bindings/interface/SBEnvironmentExtensions.i
deleted file mode 100644
index 170ffac1c0c357..00000000000000
--- a/lldb/bindings/interface/SBEnvironmentExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBEnvironment)
-
-%extend lldb::SBEnvironment {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBErrorExtensions.i b/lldb/bindings/interface/SBErrorExtensions.i
index fdac6461cd5ca7..bf7764da5b8c77 100644
--- a/lldb/bindings/interface/SBErrorExtensions.i
+++ b/lldb/bindings/interface/SBErrorExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBError)
 %extend lldb::SBError {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            return self.GetError()
-
-        def __hex__(self):
-            return self.GetError()
-
-        def __oct__(self):
-            return self.GetError()
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
         fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
         success = property(Success, None, doc='''A read only property that returns the same result as Success().''')

diff  --git a/lldb/bindings/interface/SBEventExtensions.i b/lldb/bindings/interface/SBEventExtensions.i
deleted file mode 100644
index fd2c80cf44c578..00000000000000
--- a/lldb/bindings/interface/SBEventExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBEvent)
-
-%extend lldb::SBEvent {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBExecutionContextExtensions.i b/lldb/bindings/interface/SBExecutionContextExtensions.i
index 3a1f029960b3ac..93cefd283d1b73 100644
--- a/lldb/bindings/interface/SBExecutionContextExtensions.i
+++ b/lldb/bindings/interface/SBExecutionContextExtensions.i
@@ -1,21 +1,6 @@
 %extend lldb::SBExecutionContext {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
         process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
         thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')

diff  --git a/lldb/bindings/interface/SBExpressionOptionsExtensions.i b/lldb/bindings/interface/SBExpressionOptionsExtensions.i
deleted file mode 100644
index f70d8e8cef374e..00000000000000
--- a/lldb/bindings/interface/SBExpressionOptionsExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBExpressionOptions)
-
-%extend lldb::SBExpressionOptions {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBFileExtensions.i b/lldb/bindings/interface/SBFileExtensions.i
index 2572cb6fff7965..23d097e48305bc 100644
--- a/lldb/bindings/interface/SBFileExtensions.i
+++ b/lldb/bindings/interface/SBFileExtensions.i
@@ -11,24 +11,6 @@
 
 #ifdef SWIGPYTHON
     %pythoncode {
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         @classmethod
         def Create(cls, file, borrow=False, force_io_methods=False):
             """

diff  --git a/lldb/bindings/interface/SBFileSpecExtensions.i b/lldb/bindings/interface/SBFileSpecExtensions.i
index a50cb5c80ca517..446e900054a1ca 100644
--- a/lldb/bindings/interface/SBFileSpecExtensions.i
+++ b/lldb/bindings/interface/SBFileSpecExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBFileSpec)
 %extend lldb::SBFileSpec {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         fullpath = property(str, None, doc='''A read only property that returns the fullpath as a python string.''')
         basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''')
         dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''')

diff  --git a/lldb/bindings/interface/SBFileSpecListExtensions.i b/lldb/bindings/interface/SBFileSpecListExtensions.i
deleted file mode 100644
index 05b1495d63c9fa..00000000000000
--- a/lldb/bindings/interface/SBFileSpecListExtensions.i
+++ /dev/null
@@ -1,29 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBFileSpecList)
-
-%extend lldb::SBFileSpecList {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      '''Return the number of FileSpec in a lldb.SBFileSpecList object.'''
-      return self.GetSize()
-
-    def __iter__(self):
-      '''Iterate over all FileSpecs in a lldb.SBFileSpecList object.'''
-      return lldb_iter(self, 'GetSize', 'GetFileSpecAtIndex')
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBFrameExtensions.i b/lldb/bindings/interface/SBFrameExtensions.i
index 92e386f4ae9e67..e89e207ddb1e03 100644
--- a/lldb/bindings/interface/SBFrameExtensions.i
+++ b/lldb/bindings/interface/SBFrameExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBFrame)
 %extend lldb::SBFrame {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         def get_all_variables(self):
             return self.GetVariables(True,True,True,True)
 

diff  --git a/lldb/bindings/interface/SBFunctionExtensions.i b/lldb/bindings/interface/SBFunctionExtensions.i
index f1e3c64175c26e..4efe9cf209469f 100644
--- a/lldb/bindings/interface/SBFunctionExtensions.i
+++ b/lldb/bindings/interface/SBFunctionExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBFunction)
 %extend lldb::SBFunction {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         def get_instructions_from_current_target (self):
             return self.GetInstructions (target)
 

diff  --git a/lldb/bindings/interface/SBHostOSExtensions.i b/lldb/bindings/interface/SBHostOSExtensions.i
deleted file mode 100644
index 6a42a6f13906b8..00000000000000
--- a/lldb/bindings/interface/SBHostOSExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBHostOS)
-
-%extend lldb::SBHostOS {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBInstructionExtensions.i b/lldb/bindings/interface/SBInstructionExtensions.i
index f2ad52c93ef049..bbbf1a726f718a 100644
--- a/lldb/bindings/interface/SBInstructionExtensions.i
+++ b/lldb/bindings/interface/SBInstructionExtensions.i
@@ -3,26 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBInstruction)
 %extend lldb::SBInstruction {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            """ Returns the address of the instruction. """
-            return self.GetAddress()
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            """ Returns the size of the instruction. """
-            return self.GetByteSize()
-
-        def __iter__(self):
-            pass
-
         def __mnemonic_property__ (self):
             return self.GetMnemonic (target)
         def __operands_property__ (self):

diff  --git a/lldb/bindings/interface/SBInstructionListExtensions.i b/lldb/bindings/interface/SBInstructionListExtensions.i
index c1feeb0a15cc84..d35371ef614434 100644
--- a/lldb/bindings/interface/SBInstructionListExtensions.i
+++ b/lldb/bindings/interface/SBInstructionListExtensions.i
@@ -3,15 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBInstructionList)
 %extend lldb::SBInstructionList {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all instructions in a lldb.SBInstructionList
             object.'''

diff  --git a/lldb/bindings/interface/SBLanguageRuntimeExtensions.i b/lldb/bindings/interface/SBLanguageRuntimeExtensions.i
deleted file mode 100644
index 82a9311d537d61..00000000000000
--- a/lldb/bindings/interface/SBLanguageRuntimeExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBLanguageRuntime)
-
-%extend lldb::SBLanguageRuntime {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBLaunchInfoExtensions.i b/lldb/bindings/interface/SBLaunchInfoExtensions.i
deleted file mode 100644
index 53a9a4d1b7aea3..00000000000000
--- a/lldb/bindings/interface/SBLaunchInfoExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBLaunchInfo)
-
-%extend lldb::SBLaunchInfo {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBLineEntryExtensions.i b/lldb/bindings/interface/SBLineEntryExtensions.i
index c0a085cfdb538b..f2d02dea144ba6 100644
--- a/lldb/bindings/interface/SBLineEntryExtensions.i
+++ b/lldb/bindings/interface/SBLineEntryExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBLineEntry)
 %extend lldb::SBLineEntry {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            return self.GetLine()
-
-        def __hex__(self):
-            return self.GetStartAddress()
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
         line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
         column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')

diff  --git a/lldb/bindings/interface/SBListenerExtensions.i b/lldb/bindings/interface/SBListenerExtensions.i
deleted file mode 100644
index 9c626d68056ac7..00000000000000
--- a/lldb/bindings/interface/SBListenerExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBListener)
-
-%extend lldb::SBListener {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBMemoryRegionInfoExtensions.i b/lldb/bindings/interface/SBMemoryRegionInfoExtensions.i
index 2fd522550cbb42..64a12187557fc7 100644
--- a/lldb/bindings/interface/SBMemoryRegionInfoExtensions.i
+++ b/lldb/bindings/interface/SBMemoryRegionInfoExtensions.i
@@ -1,27 +1 @@
 STRING_EXTENSION_OUTSIDE(SBMemoryRegionInfo)
-
-%extend lldb::SBMemoryRegionInfo {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      return self.GetRegionBase()
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      return self.GetRegionEnd() - self.GetRegionBase()
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBMemoryRegionInfoListExtensions.i b/lldb/bindings/interface/SBMemoryRegionInfoListExtensions.i
deleted file mode 100644
index 09143e8e41a2dd..00000000000000
--- a/lldb/bindings/interface/SBMemoryRegionInfoListExtensions.i
+++ /dev/null
@@ -1,29 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBMemoryRegionInfoList)
-
-%extend lldb::SBMemoryRegionInfoList {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      '''Return the number of memory region info in a lldb.SBMemoryRegionInfoList object.'''
-      return self.GetSize()
-
-    def __iter__(self):
-      '''Iterate over all the memory regions in a lldb.SBMemoryRegionInfoList object.'''
-      return lldb_iter(self, 'GetSize', 'GetMemoryRegionAtIndex')
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBModuleExtensions.i b/lldb/bindings/interface/SBModuleExtensions.i
index 62b9a03779bf82..4f35e433bf9297 100644
--- a/lldb/bindings/interface/SBModuleExtensions.i
+++ b/lldb/bindings/interface/SBModuleExtensions.i
@@ -28,18 +28,6 @@ STRING_EXTENSION_OUTSIDE(SBModule)
 %extend lldb::SBModule {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __len__(self):
             '''Return the number of symbols in a lldb.SBModule object.'''
             return self.GetNumSymbols()

diff  --git a/lldb/bindings/interface/SBModuleSpecExtensions.i b/lldb/bindings/interface/SBModuleSpecExtensions.i
index a1f71205596ee9..d1f04472a8ce58 100644
--- a/lldb/bindings/interface/SBModuleSpecExtensions.i
+++ b/lldb/bindings/interface/SBModuleSpecExtensions.i
@@ -1,27 +1,3 @@
 STRING_EXTENSION_OUTSIDE(SBModuleSpec)
 
-%extend lldb::SBModuleSpec {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}
+STRING_EXTENSION_OUTSIDE(SBModuleSpecList)

diff  --git a/lldb/bindings/interface/SBModuleSpecListExtensions.i b/lldb/bindings/interface/SBModuleSpecListExtensions.i
deleted file mode 100644
index e226b7d0939761..00000000000000
--- a/lldb/bindings/interface/SBModuleSpecListExtensions.i
+++ /dev/null
@@ -1,30 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBModuleSpecList)
-
-%extend lldb::SBModuleSpecList {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      '''Return the number of ModuleSpec in a lldb.SBModuleSpecList object.'''
-      return self.GetSize()
-
-    def __iter__(self):
-      '''Iterate over all ModuleSpecs in a lldb.SBModuleSpecList object.'''
-      return lldb_iter(self, 'GetSize', 'GetSpecAtIndex')
-    %}
-#endif
-}
-

diff  --git a/lldb/bindings/interface/SBPlatformConnectOptionsExtensions.i b/lldb/bindings/interface/SBPlatformConnectOptionsExtensions.i
deleted file mode 100644
index 1aa6e7b5829064..00000000000000
--- a/lldb/bindings/interface/SBPlatformConnectOptionsExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBPlatformConnectOptions)
-
-%extend lldb::SBPlatformConnectOptions {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBPlatformExtensions.i b/lldb/bindings/interface/SBPlatformExtensions.i
deleted file mode 100644
index 29c7a8f1165bda..00000000000000
--- a/lldb/bindings/interface/SBPlatformExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBPlatform)
-
-%extend lldb::SBPlatform {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBPlatformShellCommandExtensions.i b/lldb/bindings/interface/SBPlatformShellCommandExtensions.i
deleted file mode 100644
index 56e8d62a7fc6ec..00000000000000
--- a/lldb/bindings/interface/SBPlatformShellCommandExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBPlatformShellCommand)
-
-%extend lldb::SBPlatformShellCommand {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBProcessDocstrings.i b/lldb/bindings/interface/SBProcessDocstrings.i
index 3ee17e0c7f2fbb..dba7465c8060ef 100644
--- a/lldb/bindings/interface/SBProcessDocstrings.i
+++ b/lldb/bindings/interface/SBProcessDocstrings.i
@@ -209,10 +209,6 @@ SBProcess supports thread iteration. For example (from test/lldbutil.py), ::
     lldb.LLDB_INVALID_ADDRESS if the allocation failed."
 ) lldb::SBProcess::AllocateMemory;
 
-%feature("autodoc", "Get default process broadcaster class name (lldb.process)."
-) lldb::SBProcess::GetBroadcasterClass;
-
-
 %feature("autodoc", "
     Deallocates the block of memory (previously allocated using
     AllocateMemory) given in the argument."

diff  --git a/lldb/bindings/interface/SBProcessExtensions.i b/lldb/bindings/interface/SBProcessExtensions.i
index c27c5b40180b73..fe9e6415b618e3 100644
--- a/lldb/bindings/interface/SBProcessExtensions.i
+++ b/lldb/bindings/interface/SBProcessExtensions.i
@@ -79,14 +79,6 @@ STRING_EXTENSION_OUTSIDE(SBProcess)
             '''Return the number of threads in a lldb.SBProcess object.'''
             return self.GetNumThreads()
 
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
 
         threads = property(get_process_thread_list, None, doc='''A read only property that returns a list() of lldb.SBThread objects for this process.''')
         thread = property(get_threads_access_object, None, doc='''A read only property that returns an object that can access threads by thread index (thread = lldb.process.thread[12]).''')

diff  --git a/lldb/bindings/interface/SBProcessInfoExtensions.i b/lldb/bindings/interface/SBProcessInfoExtensions.i
deleted file mode 100644
index 7307f370d115b2..00000000000000
--- a/lldb/bindings/interface/SBProcessInfoExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBProcessInfo)
-
-%extend lldb::SBProcessInfo {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBQueueExtensions.i b/lldb/bindings/interface/SBQueueExtensions.i
deleted file mode 100644
index f03a2e9a078fd9..00000000000000
--- a/lldb/bindings/interface/SBQueueExtensions.i
+++ /dev/null
@@ -1,28 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBQueue)
-
-%extend lldb::SBQueue {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}
-

diff  --git a/lldb/bindings/interface/SBQueueItemExtensions.i b/lldb/bindings/interface/SBQueueItemExtensions.i
deleted file mode 100644
index 4faf05ed728442..00000000000000
--- a/lldb/bindings/interface/SBQueueItemExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBQueueItem)
-
-%extend lldb::SBQueueItem {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      return self.GetAddress()
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBReproducerExtensions.i b/lldb/bindings/interface/SBReproducerExtensions.i
deleted file mode 100644
index 93f52a77a693f0..00000000000000
--- a/lldb/bindings/interface/SBReproducerExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBReproducer)
-
-%extend lldb::SBReproducer {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBScriptObjectExtensions.i b/lldb/bindings/interface/SBScriptObjectExtensions.i
index 99fc609ff9e0f6..279854c3d73ccf 100644
--- a/lldb/bindings/interface/SBScriptObjectExtensions.i
+++ b/lldb/bindings/interface/SBScriptObjectExtensions.i
@@ -1,26 +1,6 @@
-STRING_EXTENSION_OUTSIDE(SBScriptObject)
-
 %extend lldb::SBScriptObject {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''')
         lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''')
     %}

diff  --git a/lldb/bindings/interface/SBSectionExtensions.i b/lldb/bindings/interface/SBSectionExtensions.i
index 8f44ac29bb9101..47b63c520d0f17 100644
--- a/lldb/bindings/interface/SBSectionExtensions.i
+++ b/lldb/bindings/interface/SBSectionExtensions.i
@@ -3,18 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBSection)
 %extend lldb::SBSection {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all subsections in a lldb.SBSection object.'''
             return lldb_iter(self, 'GetNumSubSections', 'GetSubSectionAtIndex')

diff  --git a/lldb/bindings/interface/SBSourceManagerExtensions.i b/lldb/bindings/interface/SBSourceManagerExtensions.i
deleted file mode 100644
index 0e240cf0d4b682..00000000000000
--- a/lldb/bindings/interface/SBSourceManagerExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBSourceManager)
-
-%extend lldb::SBSourceManager {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-	    def __eq__(self, other):
-	      return not self.__ne__(other)
-
-	    def __int__(self):
-	      pass
-
-	    def __hex__(self):
-	      pass
-
-	    def __oct__(self):
-	      pass
-
-	    def __len__(self):
-	      pass
-
-	    def __iter__(self):
-	      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBStreamExtensions.i b/lldb/bindings/interface/SBStreamExtensions.i
index 909f64217bb711..e52b2dd8d76b5d 100644
--- a/lldb/bindings/interface/SBStreamExtensions.i
+++ b/lldb/bindings/interface/SBStreamExtensions.i
@@ -1,28 +1,4 @@
 %extend lldb::SBStream {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-	    def __eq__(self, other):
-	      return not self.__ne__(other)
-
-	    def __int__(self):
-	      pass
-
-	    def __hex__(self):
-	      pass
-
-	    def __oct__(self):
-	      pass
-
-	    def __len__(self):
-	      return self.GetSize()
-
-	    def __iter__(self):
-	      pass
-    %}
-#endif
-
     %feature("autodoc", "DEPRECATED, use RedirectToFile") RedirectToFileHandle;
     void
     RedirectToFileHandle (lldb::FileSP file, bool transfer_fh_ownership) {

diff  --git a/lldb/bindings/interface/SBStringListExtensions.i b/lldb/bindings/interface/SBStringListExtensions.i
index c3a9340fe33f25..04f72668b37fee 100644
--- a/lldb/bindings/interface/SBStringListExtensions.i
+++ b/lldb/bindings/interface/SBStringListExtensions.i
@@ -1,15 +1,6 @@
 %extend lldb::SBStringList {
 #ifdef SWIGPYTHON
     %pythoncode%{
-    def __int__(self):
-        pass
-
-    def __hex__(self):
-        pass
-
-    def __oct__(self):
-        pass
-
     def __iter__(self):
         '''Iterate over all strings in a lldb.SBStringList object.'''
         return lldb_iter(self, 'GetSize', 'GetStringAtIndex')

diff  --git a/lldb/bindings/interface/SBStructuredDataExtensions.i b/lldb/bindings/interface/SBStructuredDataExtensions.i
deleted file mode 100644
index 5c2d217a166585..00000000000000
--- a/lldb/bindings/interface/SBStructuredDataExtensions.i
+++ /dev/null
@@ -1,29 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBStructuredData)
-
-%extend lldb::SBStructuredData {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      return self.GetSignedInteger()
-
-    def __hex__(self):
-      return hex(self.GetSignedInteger())
-
-    def __oct__(self):
-      return oct(self.GetSignedInteger())
-
-    def __len__(self):
-      '''Return the number of element in a lldb.SBStructuredData object.'''
-      return self.GetSize()
-
-    def __iter__(self):
-        '''Iterate over all the elements in a lldb.SBStructuredData object.'''
-        return lldb_iter(self, 'GetSize', 'GetItemAtIndex')
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBSymbolContextExtensions.i b/lldb/bindings/interface/SBSymbolContextExtensions.i
index bcf56448077353..ba2d23d7de2348 100644
--- a/lldb/bindings/interface/SBSymbolContextExtensions.i
+++ b/lldb/bindings/interface/SBSymbolContextExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBSymbolContext)
 %extend lldb::SBSymbolContext {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         module = property(GetModule, SetModule, doc='''A read/write property that allows the getting/setting of the module (lldb.SBModule) in this symbol context.''')
         compile_unit = property(GetCompileUnit, SetCompileUnit, doc='''A read/write property that allows the getting/setting of the compile unit (lldb.SBCompileUnit) in this symbol context.''')
         function = property(GetFunction, SetFunction, doc='''A read/write property that allows the getting/setting of the function (lldb.SBFunction) in this symbol context.''')

diff  --git a/lldb/bindings/interface/SBSymbolContextListExtensions.i b/lldb/bindings/interface/SBSymbolContextListExtensions.i
index bf787392326db8..af3d286c2ca9a7 100644
--- a/lldb/bindings/interface/SBSymbolContextListExtensions.i
+++ b/lldb/bindings/interface/SBSymbolContextListExtensions.i
@@ -11,15 +11,6 @@ STRING_EXTENSION_OUTSIDE(SBSymbolContextList)
         def __len__(self):
             return int(self.GetSize())
 
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __getitem__(self, key):
             count = len(self)
             if isinstance(key, int):

diff  --git a/lldb/bindings/interface/SBSymbolExtensions.i b/lldb/bindings/interface/SBSymbolExtensions.i
index d464851b33b6b3..249f3577bc7674 100644
--- a/lldb/bindings/interface/SBSymbolExtensions.i
+++ b/lldb/bindings/interface/SBSymbolExtensions.i
@@ -3,24 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBSymbol)
 %extend lldb::SBSymbol {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            return self.GetStartAddress()
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         def get_instructions_from_current_target (self):
             return self.GetInstructions (target)
 

diff  --git a/lldb/bindings/interface/SBTargetExtensions.i b/lldb/bindings/interface/SBTargetExtensions.i
index ee1eb78bbeab5b..02c40b09c857f7 100644
--- a/lldb/bindings/interface/SBTargetExtensions.i
+++ b/lldb/bindings/interface/SBTargetExtensions.i
@@ -32,24 +32,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTarget {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         class modules_access(object):
             '''A helper object that will lazily hand out lldb.SBModule objects for a target when supplied an index, or by full or partial path.'''
             def __init__(self, sbtarget):

diff  --git a/lldb/bindings/interface/SBThreadCollectionExtensions.i b/lldb/bindings/interface/SBThreadCollectionExtensions.i
deleted file mode 100644
index 7b7e94ed9a991c..00000000000000
--- a/lldb/bindings/interface/SBThreadCollectionExtensions.i
+++ /dev/null
@@ -1,29 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBThreadCollection)
-
-%extend lldb::SBThreadCollection {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __iter__(self):
-        '''Iterate over all threads in a lldb.SBThreadCollection object.'''
-        return lldb_iter(self, 'GetSize', 'GetThreadAtIndex')
-
-    def __len__(self):
-        '''Return the number of threads in a lldb.SBThreadCollection object.'''
-        return self.GetSize()
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBThreadExtensions.i b/lldb/bindings/interface/SBThreadExtensions.i
index 01b1a207fed689..54bc105513517b 100644
--- a/lldb/bindings/interface/SBThreadExtensions.i
+++ b/lldb/bindings/interface/SBThreadExtensions.i
@@ -3,18 +3,6 @@ STRING_EXTENSION_OUTSIDE(SBThread)
 %extend lldb::SBThread {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all frames in a lldb.SBThread object.'''
             return lldb_iter(self, 'GetNumFrames', 'GetFrameAtIndex')

diff  --git a/lldb/bindings/interface/SBThreadPlanExtensions.i b/lldb/bindings/interface/SBThreadPlanExtensions.i
deleted file mode 100644
index 39058508e84fdd..00000000000000
--- a/lldb/bindings/interface/SBThreadPlanExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBThreadPlan)
-
-%extend lldb::SBThreadPlan {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBTraceCursorExtensions.i b/lldb/bindings/interface/SBTraceCursorExtensions.i
deleted file mode 100644
index ce1f1d1bc34152..00000000000000
--- a/lldb/bindings/interface/SBTraceCursorExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBTraceCursor)
-
-%extend lldb::SBTraceCursor {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-      def __eq__(self, other):
-        return not self.__ne__(other)
-
-      def __int__(self):
-        pass
-
-      def __hex__(self):
-        pass
-
-      def __oct__(self):
-        pass
-
-      def __len__(self):
-        pass
-
-      def __iter__(self):
-        pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBTraceExtensions.i b/lldb/bindings/interface/SBTraceExtensions.i
deleted file mode 100644
index ed26ccc6849bfd..00000000000000
--- a/lldb/bindings/interface/SBTraceExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBTrace)
-
-%extend lldb::SBTrace {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-    def __eq__(self, other):
-      return not self.__ne__(other)
-
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      pass
-
-    def __iter__(self):
-      pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBTypeCategoryExtensions.i b/lldb/bindings/interface/SBTypeCategoryExtensions.i
index 83c740de6a0e5d..fb93af5c0dedaf 100644
--- a/lldb/bindings/interface/SBTypeCategoryExtensions.i
+++ b/lldb/bindings/interface/SBTypeCategoryExtensions.i
@@ -3,23 +3,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeCategory, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeCategory {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __eq__(self, other):
-                return not self.__ne__(other)
-
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
 
             class formatters_access_class(object):
                 '''A helper object that will lazily hand out formatters for a specific category.'''

diff  --git a/lldb/bindings/interface/SBTypeEnumMemberExtensions.i b/lldb/bindings/interface/SBTypeEnumMemberExtensions.i
index 3a1ba3fc986f44..3b0154f40727ff 100644
--- a/lldb/bindings/interface/SBTypeEnumMemberExtensions.i
+++ b/lldb/bindings/interface/SBTypeEnumMemberExtensions.i
@@ -2,26 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeEnumMember, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeEnumMember {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __iter__(self):
-            '''Iterate over all members in a lldb.SBTypeEnumMemberList object.'''
-            return lldb_iter(self, 'GetSize', 'GetTypeEnumMemberAtIndex')
-
-        def __len__(self):
-            '''Return the number of members in a lldb.SBTypeEnumMemberList object.'''
-            return self.GetSize()
-
         name = property(GetName, None, doc='''A read only property that returns the name for this enum member as a string.''')
         type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this enum member.''')
         signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this enum member as a signed integer.''')
@@ -33,18 +13,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeEnumMember, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeEnumMemberList {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all members in a lldb.SBTypeEnumMemberList object.'''
             return lldb_iter(self, 'GetSize', 'GetTypeEnumMemberAtIndex')

diff  --git a/lldb/bindings/interface/SBTypeExtensions.i b/lldb/bindings/interface/SBTypeExtensions.i
index 02f256bedac4fd..f40ca80e58c0a1 100644
--- a/lldb/bindings/interface/SBTypeExtensions.i
+++ b/lldb/bindings/interface/SBTypeExtensions.i
@@ -2,24 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeMember, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeMember {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            pass
-
-        def __iter__(self):
-            pass
-
         name = property(GetName, None, doc='''A read only property that returns the name for this member as a string.''')
         type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this member.''')
         byte_offset = property(GetOffsetInBytes, None, doc='''A read only property that returns offset in bytes for this member as an integer.''')
@@ -32,32 +14,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeMember, lldb::eDescriptionLevelBrief)
 
 STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeMemberFunction, lldb::eDescriptionLevelBrief)
 
-%extend lldb::SBTypeMemberFunction {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-      def __eq__(self, other):
-        return not self.__ne__(other)
-
-      def __int__(self):
-        pass
-
-      def __hex__(self):
-        pass
-
-      def __oct__(self):
-        pass
-
-      def __len__(self):
-        pass
-
-      def __iter__(self):
-        pass
-    %}
-#endif
-}
-
 STRING_EXTENSION_LEVEL_OUTSIDE(SBType, lldb::eDescriptionLevelBrief)
 
 %extend lldb::SBType {
@@ -72,24 +28,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBType, lldb::eDescriptionLevelBrief)
                 return template_args
             return None
 
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
-        def __len__(self):
-            return self.GetByteSize()
-
-        def __iter__(self):
-            pass
-
         module = property(GetModule, None, doc='''A read only property that returns the module in which type is defined.''')
         name = property(GetName, None, doc='''A read only property that returns the name for this type as a string.''')
         size = property(GetByteSize, None, doc='''A read only property that returns size in bytes for this type as an integer.''')
@@ -183,18 +121,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBType, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeList {
 #ifdef SWIGPYTHON
     %pythoncode%{
-    def __eq__(self, other):
-        return not self.__ne__(other)
-
-    def __int__(self):
-        pass
-
-    def __hex__(self):
-        pass
-
-    def __oct__(self):
-        pass
-
     def __iter__(self):
         '''Iterate over all types in a lldb.SBTypeList object.'''
         return lldb_iter(self, 'GetSize', 'GetTypeAtIndex')

diff  --git a/lldb/bindings/interface/SBTypeFilterExtensions.i b/lldb/bindings/interface/SBTypeFilterExtensions.i
index 13d261f3c09d02..d218ff90f92057 100644
--- a/lldb/bindings/interface/SBTypeFilterExtensions.i
+++ b/lldb/bindings/interface/SBTypeFilterExtensions.i
@@ -2,24 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeFilter, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeFilter {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __eq__(self, other):
-                return not self.__ne__(other)
-
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
-
             options = property(GetOptions, SetOptions)
             count = property(GetNumberOfExpressionPaths)
         %}

diff  --git a/lldb/bindings/interface/SBTypeFormatExtensions.i b/lldb/bindings/interface/SBTypeFormatExtensions.i
index eb9b1d624a3489..0ea8492f8b0e91 100644
--- a/lldb/bindings/interface/SBTypeFormatExtensions.i
+++ b/lldb/bindings/interface/SBTypeFormatExtensions.i
@@ -2,24 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeFormat, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeFormat {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __eq__(self, other):
-                return not self.__ne__(other)
-
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
-
             format = property(GetFormat, SetFormat)
             options = property(GetOptions, SetOptions)
         %}

diff  --git a/lldb/bindings/interface/SBTypeNameSpecifierExtensions.i b/lldb/bindings/interface/SBTypeNameSpecifierExtensions.i
index 07ae776a17a159..f73ac05436de73 100644
--- a/lldb/bindings/interface/SBTypeNameSpecifierExtensions.i
+++ b/lldb/bindings/interface/SBTypeNameSpecifierExtensions.i
@@ -2,24 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeNameSpecifier, lldb::eDescriptionLevelBrief
 %extend lldb::SBTypeNameSpecifier {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __eq__(self, other):
-                return not self.__ne__(other)
-
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
-
             name = property(GetName)
             is_regex = property(IsRegex)
         %}

diff  --git a/lldb/bindings/interface/SBTypeSummaryExtensions.i b/lldb/bindings/interface/SBTypeSummaryExtensions.i
index 74a1f5293e6a36..c2abd91b0b2384 100644
--- a/lldb/bindings/interface/SBTypeSummaryExtensions.i
+++ b/lldb/bindings/interface/SBTypeSummaryExtensions.i
@@ -2,24 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeSummary, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeSummary {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __eq__(self, other):
-                return not self.__ne__(other)
-
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
-
             options = property(GetOptions, SetOptions)
             is_summary_string = property(IsSummaryString)
             is_function_name = property(IsFunctionName)

diff  --git a/lldb/bindings/interface/SBTypeSummaryOptionsExtensions.i b/lldb/bindings/interface/SBTypeSummaryOptionsExtensions.i
deleted file mode 100644
index e7a41a853840e9..00000000000000
--- a/lldb/bindings/interface/SBTypeSummaryOptionsExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBTypeSummaryOptions)
-
-%extend lldb::SBTypeSummaryOptions {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-      def __eq__(self, other):
-        return not self.__ne__(other)
-
-      def __int__(self):
-        pass
-
-      def __hex__(self):
-        pass
-
-      def __oct__(self):
-        pass
-
-      def __len__(self):
-        pass
-
-      def __iter__(self):
-        pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBTypeSyntheticExtensions.i b/lldb/bindings/interface/SBTypeSyntheticExtensions.i
index 96c09810828995..f86572f9c80782 100644
--- a/lldb/bindings/interface/SBTypeSyntheticExtensions.i
+++ b/lldb/bindings/interface/SBTypeSyntheticExtensions.i
@@ -2,24 +2,6 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeSynthetic, lldb::eDescriptionLevelBrief)
 %extend lldb::SBTypeSynthetic {
 #ifdef SWIGPYTHON
         %pythoncode %{
-            def __eq__(self, other):
-                return not self.__ne__(other)
-
-            def __int__(self):
-                pass
-
-            def __hex__(self):
-                pass
-
-            def __oct__(self):
-                pass
-
-            def __len__(self):
-                pass
-
-            def __iter__(self):
-                pass
-
             options = property(GetOptions, SetOptions)
             contains_code = property(IsClassCode, None)
             synthetic_data = property(GetData, None)

diff  --git a/lldb/bindings/interface/SBUnixSignalsExtensions.i b/lldb/bindings/interface/SBUnixSignalsExtensions.i
index 252fe5c3b56474..b8a26a3481e5da 100644
--- a/lldb/bindings/interface/SBUnixSignalsExtensions.i
+++ b/lldb/bindings/interface/SBUnixSignalsExtensions.i
@@ -1,25 +1,6 @@
 %extend lldb::SBUnixSignals {
 #ifdef SWIGPYTHON
     %pythoncode %{
-        def __iter__(self):
-            '''Iterate over all signals in a lldb.SBUnixSignals object.'''
-            return lldb_iter(self, 'GetNumSignals', 'GetSignalAtIndex')
-
-        def __len__(self):
-            return int(self.GetNumSignals())
-
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def get_unix_signals_list(self):
             signals = []
             for idx in range(0, self.GetNumSignals()):

diff  --git a/lldb/bindings/interface/SBValueExtensions.i b/lldb/bindings/interface/SBValueExtensions.i
index 22ac6a177b1547..21b09ec1c8ecd8 100644
--- a/lldb/bindings/interface/SBValueExtensions.i
+++ b/lldb/bindings/interface/SBValueExtensions.i
@@ -37,18 +37,6 @@ STRING_EXTENSION_OUTSIDE(SBValue)
                 children.append(accessor[idx])
             return children
 
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            return self.GetAddress()
-
-        def __oct__(self):
-            pass
-
         def __iter__(self):
             '''Iterate over all child values of a lldb.SBValue object.'''
             return lldb_iter(self, 'GetNumChildren', 'GetChildAtIndex')

diff  --git a/lldb/bindings/interface/SBValueListExtensions.i b/lldb/bindings/interface/SBValueListExtensions.i
index 25578c1daafef1..a74df7b5f0a611 100644
--- a/lldb/bindings/interface/SBValueListExtensions.i
+++ b/lldb/bindings/interface/SBValueListExtensions.i
@@ -34,18 +34,6 @@
         def __len__(self):
             return int(self.GetSize())
 
-        def __eq__(self, other):
-            return not self.__ne__(other)
-
-        def __int__(self):
-            pass
-
-        def __hex__(self):
-            pass
-
-        def __oct__(self):
-            pass
-
         def __getitem__(self, key):
             count = len(self)
             #------------------------------------------------------------

diff  --git a/lldb/bindings/interface/SBVariablesOptionsExtensions.i b/lldb/bindings/interface/SBVariablesOptionsExtensions.i
deleted file mode 100644
index a9b79a64b27543..00000000000000
--- a/lldb/bindings/interface/SBVariablesOptionsExtensions.i
+++ /dev/null
@@ -1,27 +0,0 @@
-STRING_EXTENSION_OUTSIDE(SBVariablesOptions)
-
-%extend lldb::SBVariablesOptions {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-      def __eq__(self, other):
-        return not self.__ne__(other)
-
-      def __int__(self):
-        pass
-
-      def __hex__(self):
-        pass
-
-      def __oct__(self):
-        pass
-
-      def __len__(self):
-        pass
-
-      def __iter__(self):
-        pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interface/SBWatchpointExtensions.i b/lldb/bindings/interface/SBWatchpointExtensions.i
index 0b1cd3c540b2bf..b1154122fb6e47 100644
--- a/lldb/bindings/interface/SBWatchpointExtensions.i
+++ b/lldb/bindings/interface/SBWatchpointExtensions.i
@@ -1,27 +1 @@
 STRING_EXTENSION_LEVEL_OUTSIDE(SBWatchpoint, lldb::eDescriptionLevelVerbose)
-
-%extend lldb::SBWatchpoint {
-#ifdef SWIGPYTHON
-    // operator== is a free function, which swig does not handle, so we inject
-    // our own equality operator here
-    %pythoncode%{
-      def __eq__(self, other):
-        return not self.__ne__(other)
-
-      def __int__(self):
-        pass
-
-      def __hex__(self):
-        return self.GetWatchAddress()
-
-      def __oct__(self):
-        pass
-
-      def __len__(self):
-        return self.GetWatchSize()
-
-      def __iter__(self):
-        pass
-    %}
-#endif
-}

diff  --git a/lldb/bindings/interfaces.swig b/lldb/bindings/interfaces.swig
index 6e0947350319c4..db8eda06464c1a 100644
--- a/lldb/bindings/interfaces.swig
+++ b/lldb/bindings/interfaces.swig
@@ -155,78 +155,46 @@
 
 /* Extensions for SB classes */
 %include "./interface/SBAddressExtensions.i"
-%include "./interface/SBAttachInfoExtensions.i"
 %include "./interface/SBBlockExtensions.i"
 %include "./interface/SBBreakpointExtensions.i"
-%include "./interface/SBBreakpointListExtensions.i"
 %include "./interface/SBBreakpointLocationExtensions.i"
 %include "./interface/SBBreakpointNameExtensions.i"
-%include "./interface/SBBroadcastExtensions.i"
-%include "./interface/SBCommandInterpreterExtensions.i"
-%include "./interface/SBCommandInterpreterRunOptionsExtensions.i"
 %include "./interface/SBCommandReturnObjectExtensions.i"
-%include "./interface/SBCommunicationExtensions.i"
 %include "./interface/SBCompileUnitExtensions.i"
 %include "./interface/SBDataExtensions.i"
 %include "./interface/SBDebuggerExtensions.i"
 %include "./interface/SBDeclarationExtensions.i"
-%include "./interface/SBEnvironmentExtensions.i"
 %include "./interface/SBErrorExtensions.i"
-%include "./interface/SBEventExtensions.i"
 %include "./interface/SBExecutionContextExtensions.i"
-%include "./interface/SBExpressionOptionsExtensions.i"
 %include "./interface/SBFileExtensions.i"
 %include "./interface/SBFileSpecExtensions.i"
-%include "./interface/SBFileSpecListExtensions.i"
 %include "./interface/SBFrameExtensions.i"
 %include "./interface/SBFunctionExtensions.i"
-%include "./interface/SBHostOSExtensions.i"
 %include "./interface/SBInstructionExtensions.i"
 %include "./interface/SBInstructionListExtensions.i"
-%include "./interface/SBLanguageRuntimeExtensions.i"
-%include "./interface/SBLaunchInfoExtensions.i"
 %include "./interface/SBLineEntryExtensions.i"
-%include "./interface/SBListenerExtensions.i"
 %include "./interface/SBMemoryRegionInfoExtensions.i"
-%include "./interface/SBMemoryRegionInfoListExtensions.i"
 %include "./interface/SBModuleExtensions.i"
 %include "./interface/SBModuleSpecExtensions.i"
-%include "./interface/SBModuleSpecListExtensions.i"
-%include "./interface/SBPlatformConnectOptionsExtensions.i"
-%include "./interface/SBPlatformExtensions.i"
-%include "./interface/SBPlatformShellCommandExtensions.i"
 %include "./interface/SBProcessExtensions.i"
-%include "./interface/SBProcessInfoExtensions.i"
-%include "./interface/SBQueueExtensions.i"
-%include "./interface/SBQueueItemExtensions.i"
-%include "./interface/SBReproducerExtensions.i"
 %include "./interface/SBScriptObjectExtensions.i"
 %include "./interface/SBSectionExtensions.i"
-%include "./interface/SBSourceManagerExtensions.i"
 %include "./interface/SBStreamExtensions.i"
 %include "./interface/SBStringListExtensions.i"
-%include "./interface/SBStructuredDataExtensions.i"
-%include "./interface/SBSymbolContextExtensions.i"
+%include "./interface/SBSymbolExtensions.i"
 %include "./interface/SBSymbolContextExtensions.i"
 %include "./interface/SBSymbolContextListExtensions.i"
-%include "./interface/SBSymbolExtensions.i"
 %include "./interface/SBTargetExtensions.i"
-%include "./interface/SBThreadCollectionExtensions.i"
 %include "./interface/SBThreadExtensions.i"
-%include "./interface/SBThreadPlanExtensions.i"
-%include "./interface/SBTraceCursorExtensions.i"
-%include "./interface/SBTraceExtensions.i"
+%include "./interface/SBTypeExtensions.i"
 %include "./interface/SBTypeCategoryExtensions.i"
 %include "./interface/SBTypeEnumMemberExtensions.i"
-%include "./interface/SBTypeExtensions.i"
 %include "./interface/SBTypeFilterExtensions.i"
 %include "./interface/SBTypeFormatExtensions.i"
 %include "./interface/SBTypeNameSpecifierExtensions.i"
 %include "./interface/SBTypeSummaryExtensions.i"
-%include "./interface/SBTypeSummaryOptionsExtensions.i"
 %include "./interface/SBTypeSyntheticExtensions.i"
 %include "./interface/SBUnixSignalsExtensions.i"
 %include "./interface/SBValueExtensions.i"
 %include "./interface/SBValueListExtensions.i"
-%include "./interface/SBVariablesOptionsExtensions.i"
 %include "./interface/SBWatchpointExtensions.i"

diff  --git a/lldb/bindings/python/python-extensions.swig b/lldb/bindings/python/python-extensions.swig
index 42dbb194fdc4f4..cb841af070ad6a 100644
--- a/lldb/bindings/python/python-extensions.swig
+++ b/lldb/bindings/python/python-extensions.swig
@@ -289,24 +289,6 @@ class declaration(object):
         self.line = line
         self.col = col
 
-    def __eq__(self, other):
-        return not self.__ne__(other)
-
-    def __int__(self):
-        pass
-
-    def __hex__(self):
-        pass
-
-    def __oct__(self):
-        pass
-
-    def __len__(self):
-        pass
-
-    def __iter__(self):
-        pass
-
 class value_iter(object):
     '''Allows iterating over the children of an :py:class:`SBValue`.'''
     def __iter__(self):
@@ -322,24 +304,8 @@ class value_iter(object):
     def next(self):
         return self.__next__()
 
-    def __eq__(self, other):
-        return not self.__ne__(other)
-
-    def __int__(self):
-        pass
-
-    def __hex__(self):
-        pass
-
-    def __oct__(self):
-        pass
-
-    def __len__(self):
-        return self.length
-
     def __init__(self,value):
         self.index = 0
-        self.length = 0
         self.sbvalue = value
         if type(self.sbvalue) is value:
             self.sbvalue = self.sbvalue.sbvalue
@@ -580,21 +546,6 @@ class SBSyntheticValueProvider(object):
     def has_children(self):
         return False
 
-    def __int__(self):
-      pass
-
-    def __hex__(self):
-      pass
-
-    def __oct__(self):
-      pass
-
-    def __len__(self):
-      return self.num_children()
-
-    def __iter__(self):
-      '''Iterate over all children in a lldb.SBSyntheticValueProvider object.'''
-      return lldb_iter(self, 'num_children', 'get_child_at_index')
 
 %}
 

diff  --git a/lldb/bindings/python/python.swig b/lldb/bindings/python/python.swig
index 5ca5ce1b59d0ef..278c0eed2bab27 100644
--- a/lldb/bindings/python/python.swig
+++ b/lldb/bindings/python/python.swig
@@ -106,21 +106,6 @@ def lldb_iter(obj, getsize, getelem):
     elem = getattr(obj, getelem)
     for i in range(size()):
         yield elem(i)
-
-def __int__(self):
-  pass
-
-def __hex__(self):
-  pass
-
-def __oct__(self):
-  pass
-
-def __len__(self):
-  pass
-
-def __iter__(self):
-  pass
 %}
 
 %include <std_string.i>

diff  --git a/lldb/docs/conf.py b/lldb/docs/conf.py
index 325fad5b0d9495..c5b89d6880c736 100644
--- a/lldb/docs/conf.py
+++ b/lldb/docs/conf.py
@@ -170,7 +170,7 @@
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-# html_static_path = ["_static"]
+html_static_path = ["_static"]
 
 html_extra_path = [".htaccess"]
 

diff  --git a/lldb/docs/python_api.rst b/lldb/docs/python_api.rst
index 6a95b36161b03c..5e465e1eae6843 100644
--- a/lldb/docs/python_api.rst
+++ b/lldb/docs/python_api.rst
@@ -5,10 +5,94 @@ LLDB Python API
   The long list of "skip" filters out several global functions that are
   generated by SWIG (but which are not useful as they are only the
   backend for their respective static functions in the classes).
+  Without this list
 .. automodapi:: lldb
   :no-inheritance-diagram:
+  :skip: SBBreakpoint_EventIsBreakpointEvent
+  :skip: SBBreakpoint_GetBreakpointEventTypeFromEvent
+  :skip: SBBreakpoint_GetBreakpointFromEvent
+  :skip: SBBreakpoint_GetBreakpointLocationAtIndexFromEvent
+  :skip: SBBreakpoint_GetNumBreakpointLocationsFromEvent
+  :skip: SBCommandInterpreter_EventIsCommandInterpreterEvent
+  :skip: SBCommandInterpreter_GetArgumentDescriptionAsCString
+  :skip: SBCommandInterpreter_GetArgumentTypeAsCString
+  :skip: SBCommandInterpreter_GetBroadcasterClass
+  :skip: SBCommunication_GetBroadcasterClass
+  :skip: SBData_CreateDataFromCString
+  :skip: SBData_CreateDataFromDoubleArray
+  :skip: SBData_CreateDataFromSInt32Array
+  :skip: SBData_CreateDataFromSInt64Array
+  :skip: SBData_CreateDataFromUInt32Array
+  :skip: SBData_CreateDataFromUInt64Array
+  :skip: SBDebugger_Create
+  :skip: SBDebugger_Create
+  :skip: SBDebugger_Destroy
+  :skip: SBDebugger_FindDebuggerWithID
+  :skip: SBDebugger_GetBuildConfiguration
+  :skip: SBDebugger_GetDefaultArchitecture
+  :skip: SBDebugger_GetInternalVariableValue
+  :skip: SBDebugger_GetVersionString
+  :skip: SBDebugger_Initialize
+  :skip: SBDebugger_InitializeWithErrorHandling
+  :skip: SBDebugger_MemoryPressureDetected
+  :skip: SBDebugger_SetDefaultArchitecture
+  :skip: SBDebugger_SetInternalVariable
+  :skip: SBDebugger_StateAsCString
+  :skip: SBDebugger_StateIsRunningState
+  :skip: SBDebugger_StateIsStoppedState
+  :skip: SBDebugger_Terminate
+  :skip: SBEvent_GetCStringFromEvent
+  :skip: SBFileSpec_ResolvePath
+  :skip: SBFile_MakeBorrowed
+  :skip: SBFile_MakeBorrowedForcingIOMethods
+  :skip: SBFile_MakeForcingIOMethods
+  :skip: SBHostOS_GetLLDBPath
+  :skip: SBHostOS_GetLLDBPythonPath
+  :skip: SBHostOS_GetProgramFileSpec
+  :skip: SBHostOS_GetUserHomeDirectory
+  :skip: SBHostOS_ThreadCancel
+  :skip: SBHostOS_ThreadCreate
+  :skip: SBHostOS_ThreadCreated
+  :skip: SBHostOS_ThreadDetach
+  :skip: SBHostOS_ThreadJoin
+  :skip: SBLanguageRuntime_GetLanguageTypeFromString
+  :skip: SBLanguageRuntime_GetNameForLanguageType
+  :skip: SBModuleSpecList_GetModuleSpecifications
+  :skip: SBModule_GarbageCollectAllocatedModules
+  :skip: SBModule_GetNumberAllocatedModules
+  :skip: SBPlatform_GetHostPlatform
+  :skip: SBProcess_EventIsProcessEvent
+  :skip: SBProcess_EventIsStructuredDataEvent
+  :skip: SBProcess_GetBroadcasterClassName
+  :skip: SBProcess_GetInterruptedFromEvent
+  :skip: SBProcess_GetNumRestartedReasonsFromEvent
+  :skip: SBProcess_GetProcessFromEvent
+  :skip: SBProcess_GetRestartedFromEvent
+  :skip: SBProcess_GetRestartedReasonAtIndexFromEvent
+  :skip: SBProcess_GetStateFromEvent
+  :skip: SBProcess_GetStructuredDataFromEvent
+  :skip: SBReproducer_Capture
+  :skip: SBReproducer_PassiveReplay
+  :skip: SBReproducer_SetAutoGenerate
+  :skip: SBReproducer_SetWorkingDirectory
+  :skip: SBTarget_EventIsTargetEvent
+  :skip: SBTarget_GetBroadcasterClassName
+  :skip: SBTarget_GetModuleAtIndexFromEvent
+  :skip: SBTarget_GetNumModulesFromEvent
+  :skip: SBTarget_GetTargetFromEvent
+  :skip: SBThread_EventIsThreadEvent
+  :skip: SBThread_GetBroadcasterClassName
+  :skip: SBThread_GetStackFrameFromEvent
+  :skip: SBThread_GetThreadFromEvent
+  :skip: SBTypeSummary_CreateWithFunctionName
+  :skip: SBTypeSummary_CreateWithScriptCode
+  :skip: SBTypeSummary_CreateWithSummaryString
+  :skip: SBTypeSynthetic_CreateWithClassName
+  :skip: SBTypeSynthetic_CreateWithScriptCode
+  :skip: SBWatchpoint_EventIsWatchpointEvent
+  :skip: SBWatchpoint_GetWatchpointEventTypeFromEvent
+  :skip: SBWatchpoint_GetWatchpointFromEvent
   :skip: command
-  :skip: declaration
   :skip: in_range
   :skip: is_numeric_type
   :skip: lldb_iter


        


More information about the lldb-commits mailing list