[Lldb-commits] [lldb] r130457 - /lldb/trunk/utils/test/lldb-disasm.py
Johnny Chen
johnny.chen at apple.com
Thu Apr 28 16:34:58 PDT 2011
Author: johnny
Date: Thu Apr 28 18:34:58 2011
New Revision: 130457
URL: http://llvm.org/viewvc/llvm-project?rev=130457&view=rev
Log:
Modified to take advantage of the iteration protocol for our lldb container objects.
Modified:
lldb/trunk/utils/test/lldb-disasm.py
Modified: lldb/trunk/utils/test/lldb-disasm.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/utils/test/lldb-disasm.py?rev=130457&r1=130456&r2=130457&view=diff
==============================================================================
--- lldb/trunk/utils/test/lldb-disasm.py (original)
+++ lldb/trunk/utils/test/lldb-disasm.py Thu Apr 28 18:34:58 2011
@@ -78,7 +78,6 @@
def do_lldb_disassembly(lldb_commands, exe, disassemble_options, num_symbols, symbols_to_disassemble):
import lldb, atexit, re
- from lldbutil import lldb_iter
# Create the debugger instance now.
dbg = lldb.SBDebugger.Create()
@@ -127,9 +126,9 @@
if limited:
count = 0
stream = lldb.SBStream()
- for m in lldb_iter(target, 'GetNumModules', 'GetModuleAtIndex'):
+ for m in target.module_iter():
print "module:", m
- for s in lldb_iter(m, 'GetNumSymbols', 'GetSymbolAtIndex'):
+ for s in m:
if limited and count >= num:
return
print "symbol:", s.GetName()
More information about the lldb-commits
mailing list