commit | a79a21c64268ccadb34cbb1084fb70849034afdd | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Mon May 16 20:31:18 2011 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Mon May 16 20:31:18 2011 +0000 |
tree | 12f50c7b43a363da0d7369b1b50920dbd9ab9c2e | |
parent | 845d6dac85acc72334aeef730f088168fe0eaf36 [diff] |
Add implementation of built-in function len() for those lldb containers with unambiguous iteration support. So that we could, for example: ... REGs = lldbutil.get_GPRs(frame) print "Number of general purpose registers: %d" % len(REGs) for reg in REGs: print "%s => %s" %(reg.GetName(), reg.GetValue()) ... git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131418 91177308-0d34-0410-b5e6-96231b3b80d8