Fix TypeError exception for re.compile().

llvm-svn: 138045
This commit is contained in:
Johnny Chen 2011-08-19 17:28:25 +00:00
parent c8ce0becb5
commit 4c35b711da
1 changed files with 2 additions and 1 deletions
lldb/utils/test

View File

@ -129,7 +129,8 @@ def do_lldb_disassembly(lldb_commands, exe, disassemble_options, num_symbols,
limited = True if num != -1 else False
if limited:
count = 0
pattern = re.compile(re_symbol_pattern)
if re_symbol_pattern:
pattern = re.compile(re_symbol_pattern)
stream = lldb.SBStream()
for m in target.module_iter():
print "module:", m