summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-21 00:48:02 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-21 00:48:02 +0000
commit3a31573f312c4526e70fa77f381a091596710141 (patch)
treeabd2c134f36166d33c150201db91e17004173b8c
parent4a9c39a2f6dae5893ac406f091e9e0ad51fe2a23 (diff)
downloadbcm5719-llvm-3a31573f312c4526e70fa77f381a091596710141.tar.gz
bcm5719-llvm-3a31573f312c4526e70fa77f381a091596710141.zip
Add docstring for SBInstructionList class.
llvm-svn: 135647
-rw-r--r--lldb/scripts/Python/interface/SBInstructionList.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBInstructionList.i b/lldb/scripts/Python/interface/SBInstructionList.i
index a753d78a33d..5aa93483f46 100644
--- a/lldb/scripts/Python/interface/SBInstructionList.i
+++ b/lldb/scripts/Python/interface/SBInstructionList.i
@@ -11,6 +11,20 @@
namespace lldb {
+%feature("docstring",
+"Represents a list of machine instructions. SBFunction and SBSymbol have
+GetInstructions() methods which return SBInstructionList instances.
+
+SBInstructionList supports instruction (SBInstruction instance) iteration.
+For example (see also SBDebugger for a more complete example),
+
+def disassemble_instructions (insts):
+ for i in insts:
+ print i
+
+defines a method which takes an SBInstructionList instance and prints out
+the machine instructions in assembly format."
+) SBInstructionList;
class SBInstructionList
{
public:
OpenPOWER on IntegriCloud