[Lldb-commits] [lldb] 3511388 - [lldb][docs] Use section_iter() to iterate over sections (#167012)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 7 13:19:29 PST 2025
Author: Ellis Hoag
Date: 2025-11-07T13:19:25-08:00
New Revision: 3511388013c74cf8029347ca7549d540983f4101
URL: https://github.com/llvm/llvm-project/commit/3511388013c74cf8029347ca7549d540983f4101
DIFF: https://github.com/llvm/llvm-project/commit/3511388013c74cf8029347ca7549d540983f4101.diff
LOG: [lldb][docs] Use section_iter() to iterate over sections (#167012)
Added:
Modified:
lldb/bindings/interface/SBSectionDocstrings.i
Removed:
################################################################################
diff --git a/lldb/bindings/interface/SBSectionDocstrings.i b/lldb/bindings/interface/SBSectionDocstrings.i
index 231e9e89da116..9c9cb813158d9 100644
--- a/lldb/bindings/interface/SBSectionDocstrings.i
+++ b/lldb/bindings/interface/SBSectionDocstrings.i
@@ -4,7 +4,7 @@
SBSection supports iteration through its subsection, represented as SBSection
as well. For example, ::
- for sec in exe_module:
+ for sec in exe_module.section_iter():
if sec.GetName() == '__TEXT':
print sec
break
More information about the lldb-commits
mailing list