aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2012-08-31 23:27:24 +0000
committerJason Molenda <jmolenda@apple.com>2012-08-31 23:27:24 +0000
commitd204afaee81ca4f9b4a1ee98d39ad49721999cb2 (patch)
tree6478a46f1b712d608db96d61227defe39f1ac892 /lldb/examples/python/crashlog.py
parent26c5d0f60709cf82bdc7b762fa7a9edb8f960c55 (diff)
downloadllvm-d204afaee81ca4f9b4a1ee98d39ad49721999cb2.zip
llvm-d204afaee81ca4f9b4a1ee98d39ad49721999cb2.tar.gz
llvm-d204afaee81ca4f9b4a1ee98d39ad49721999cb2.tar.bz2
Make the tab character in the thread frame lines optional.
llvm-svn: 163037
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 752700f..ceee0c6 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -54,7 +54,7 @@ class CrashLog(symbolication.Symbolicator):
"""Class that does parses darwin crash logs"""
thread_state_regex = re.compile('^Thread ([0-9]+) crashed with')
thread_regex = re.compile('^Thread ([0-9]+)([^:]*):(.*)')
- frame_regex = re.compile('^([0-9]+) +([^ ]+) *\t(0x[0-9a-fA-F]+) +(.*)')
+ frame_regex = re.compile('^([0-9]+) +([^ ]+) *\t?(0x[0-9a-fA-F]+) +(.*)')
image_regex_uuid = re.compile('(0x[0-9a-fA-F]+)[- ]+(0x[0-9a-fA-F]+) +[+]?([^ ]+) +([^<]+)<([-0-9a-fA-F]+)> (.*)');
image_regex_no_uuid = re.compile('(0x[0-9a-fA-F]+)[- ]+(0x[0-9a-fA-F]+) +[+]?([^ ]+) +([^/]+)/(.*)');
empty_line_regex = re.compile('^$')