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