diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-04-28 23:34:58 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-04-28 23:34:58 +0000 |
| commit | 6cd4d1d85ac0040a19c4e554e66bbd245860dcae (patch) | |
| tree | 07accc8367d103ace6b5a903118c30df0493d6fe /lldb/utils/test | |
| parent | e25799b99b212dae391aec78c06d6c6d6f8be62c (diff) | |
| download | bcm5719-llvm-6cd4d1d85ac0040a19c4e554e66bbd245860dcae.tar.gz bcm5719-llvm-6cd4d1d85ac0040a19c4e554e66bbd245860dcae.zip | |
Modified to take advantage of the iteration protocol for our lldb container objects.
llvm-svn: 130457
Diffstat (limited to 'lldb/utils/test')
| -rwxr-xr-x | lldb/utils/test/lldb-disasm.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/utils/test/lldb-disasm.py b/lldb/utils/test/lldb-disasm.py index 15af61d56ca..022a70f7bd4 100755 --- a/lldb/utils/test/lldb-disasm.py +++ b/lldb/utils/test/lldb-disasm.py @@ -78,7 +78,6 @@ def run_command(ci, cmd, res, echoInput=True, echoOutput=True): 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 @@ def do_lldb_disassembly(lldb_commands, exe, disassemble_options, num_symbols, sy 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() |

