From e090389c4ae0ab772bf0d542dcce5ca5f7bf0ce2 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 4 Apr 2019 10:13:59 +0000 Subject: modify-python-lldb.py: (Re)move __len__ and __iter__ support Summary: This patch moves the modify-python-lldb code for adding new functions to the SBModule class into the SBModule interface file. As this is the last class using this functionality, I also remove all support for this kind of modifications from modify-python-lldb.py. Reviewers: amccarth, clayborg, jingham Subscribers: zturner, lldb-commits Differential Revision: https://reviews.llvm.org/D60195 llvm-svn: 357680 --- .../lldbsuite/test/python_api/module_section/TestModuleAndSection.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/packages/Python/lldbsuite/test/python_api') diff --git a/lldb/packages/Python/lldbsuite/test/python_api/module_section/TestModuleAndSection.py b/lldb/packages/Python/lldbsuite/test/python_api/module_section/TestModuleAndSection.py index 65b159974c0..09dfcc5895a 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/module_section/TestModuleAndSection.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/module_section/TestModuleAndSection.py @@ -45,6 +45,7 @@ class ModuleAndSectionAPIsTestCase(TestBase): print("Exe module: %s" % str(exe_module)) print("Number of sections: %d" % exe_module.GetNumSections()) + print("Number of symbols: %d" % len(exe_module)) INDENT = ' ' * 4 INDENT2 = INDENT * 2 for sec in exe_module.section_iter(): -- cgit v1.2.3