summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb')
-rwxr-xr-xlldb/utils/test/lldb-disasm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/utils/test/lldb-disasm.py b/lldb/utils/test/lldb-disasm.py
index fb75bb62c6c..7825ca93086 100755
--- a/lldb/utils/test/lldb-disasm.py
+++ b/lldb/utils/test/lldb-disasm.py
@@ -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
OpenPOWER on IntegriCloud