Skip to content
  • Johnny Chen's avatar
    Add a utility function smart_iter() which has knowledge of the getsize and the getelem · b2e1a5c9
    Johnny Chen authored
    method names of all the lldb container objects and returns an iterator object when
    passed an eligible lldb container object.
    
    Example:
    
        from lldb_util import smart_iter
        for thread in smart_iter(process):
            ID = thread.GetThreadID()
            if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
                stopped_due_to_breakpoint = True
            for frame in smart_iter(thread):
                self.assertTrue(frame.GetThread().GetThreadID() == ID)
            ...
    
    Add a test case for lldb.smart_iter().
    
    llvm-svn: 130332
    b2e1a5c9
Loading