diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-10-07 16:08:52 -0700 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-11-03 14:44:52 -0700 |
commit | 42df155ae628b4ae756a858bd09b105ee10b86eb (patch) | |
tree | add05a31dbb9f587c75a09be6c4bc15420b45907 /lldb/examples | |
parent | 3be864333a8843534465bcbf3d355fcd12b42369 (diff) | |
download | llvm-42df155ae628b4ae756a858bd09b105ee10b86eb.tar.gz |
[lldb/crashlog] Fix the image_regex_uuid to skip null UUID images
This patch updates the image_regex_uuid matcher to match null-UUID
images in the plain text crashlog parser.
It updates the regex to match one or more '?' characters or the image
full path.
rdar://100904019
Differential Revision: https://reviews.llvm.org/D135482
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/examples')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 77d54ce30386..8aaf7c165684 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -623,7 +623,7 @@ class TextCrashLogParser(CrashLogParser): r'[+]?(.+?)\s+' # img_name r'(?:(' +version+ r')\s+)?' # img_version r'(?:<([-0-9a-fA-F]+)>\s+)?' # img_uuid - r'(/.*)' # img_path + r'(\?+|/.*)' # img_path ) exception_type_regex = re.compile(r'^Exception Type:\s+(EXC_[A-Z_]+)(?:\s+\((.*)\))?') exception_codes_regex = re.compile(r'^Exception Codes:\s+(0x[0-9a-fA-F]+),\s*(0x[0-9a-fA-F]+)') |