Skip to content

Commit 456ca44

Browse files
authored
[lldb][docs] Use section_iter() to iterate over sections
Iterating over an `SBModule` directly will give you symbols, not sections. According to the docs, we can use `section_iter()` to iterate over sections. https://lldb.llvm.org/python_api/lldb.SBModule.html#lldb.SBModule
1 parent f802acf commit 456ca44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/bindings/interface/SBSectionDocstrings.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SBSection supports iteration through its subsection, represented as SBSection
55
as well. For example, ::
66
7-
for sec in exe_module:
7+
for sec in exe_module.section_iter():
88
if sec.GetName() == '__TEXT':
99
print sec
1010
break

0 commit comments

Comments
 (0)