diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-09 01:31:09 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-09 01:31:09 +0000 |
commit | f4de10d2907cf5187378407fe84d6446531e2669 (patch) | |
tree | 4be7472595b4583ad5a976504482721e9d73fc8a /lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | |
parent | 4187f4942ef0569d77704379d964533652d477bc (diff) | |
download | bcm5719-llvm-f4de10d2907cf5187378407fe84d6446531e2669.tar.gz bcm5719-llvm-f4de10d2907cf5187378407fe84d6446531e2669.zip |
Add a generator adaptor class named 'Iterator' which turns lldb aggregate data
structures into an iterable Python object.
Example:
def disassemble_instructions (insts):
from lldbutil import Iterator
for i in Iterator(insts, 'GetSize', 'GetInstructionAtIndex'):
print i
llvm-svn: 116137
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions