xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBInstructionListDocstrings.i (revision 02e9120893770924227138ba49df1edb3896112a)
1 %feature("docstring",
2 "Represents a list of machine instructions.  SBFunction and SBSymbol have
3 GetInstructions() methods which return SBInstructionList instances.
4 
5 SBInstructionList supports instruction (:py:class:`SBInstruction` instance) iteration.
6 For example (see also :py:class:`SBDebugger` for a more complete example), ::
7 
8     def disassemble_instructions (insts):
9         for i in insts:
10             print i
11 
12 defines a function which takes an SBInstructionList instance and prints out
13 the machine instructions in assembly format."
14 ) lldb::SBInstructionList;
15