Skip to content
Commit f4de10d2 authored by Johnny Chen's avatar Johnny Chen
Browse files

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
parent 4187f494
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment