summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python
diff options
context:
space:
mode:
authorStefan Granitz <stefan.graenitz@gmail.com>2019-06-12 14:46:37 +0000
committerStefan Granitz <stefan.graenitz@gmail.com>2019-06-12 14:46:37 +0000
commit61a7ab7fdb28ed906f061b4f22685156f94fe3a2 (patch)
tree2ef0c3fce224c0f2668660f85369f83ce91d4a60 /lldb/examples/python
parenta866d3b2eedde5b2175ad95a6b0bf9a88000e076 (diff)
downloadbcm5719-llvm-61a7ab7fdb28ed906f061b4f22685156f94fe3a2.tar.gz
bcm5719-llvm-61a7ab7fdb28ed906f061b4f22685156f94fe3a2.zip
[lldb] Ignore null frames in lldb.macosx crashlog
llvm-svn: 363172
Diffstat (limited to 'lldb/examples/python')
-rwxr-xr-xlldb/examples/python/crashlog.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 2519dc11e5c..cc7a2d75bd9 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -102,6 +102,7 @@ class CrashLog(symbolication.Symbolicator):
app_backtrace_regex = re.compile(
'^Application Specific Backtrace ([0-9]+)([^:]*):(.*)')
frame_regex = re.compile('^([0-9]+)\s+(.+?)\s+(0x[0-9a-fA-F]{7}[0-9a-fA-F]+) +(.*)')
+ null_frame_regex = re.compile('^([0-9]+)\s+\?\?\?\s+(0{7}0+) +(.*)')
image_regex_uuid = re.compile(
'(0x[0-9a-fA-F]+)[-\s]+(0x[0-9a-fA-F]+)\s+[+]?(.+?)\s+(\(.+\))?\s?(<([-0-9a-fA-F]+)>)? (.*)')
empty_line_regex = re.compile('^$')
@@ -468,6 +469,9 @@ class CrashLog(symbolication.Symbolicator):
elif parse_mode == PARSE_MODE_THREAD:
if line.startswith('Thread'):
continue
+ if self.null_frame_regex.search(line):
+ print('warning: thread parser ignored null-frame: "%s"' % line)
+ continue
frame_match = self.frame_regex.search(line)
if frame_match:
ident = frame_match.group(2)
OpenPOWER on IntegriCloud