diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-04 10:34:41 -0700 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-09 21:01:37 -0700 |
commit | 81cbc294571fbcc609666ee4aeb86fbb68a7ec23 (patch) | |
tree | a0f4d3b1718c8e6f3dcffd230340e7aa9c761416 /lldb/examples | |
parent | a07a75180c01a3f262b02f69ee5722080da74b84 (diff) | |
download | llvm-81cbc294571fbcc609666ee4aeb86fbb68a7ec23.tar.gz |
[lldb/crashlog] Update frame regex matcher
This patch updates the regular expression matching stackframes in
crashlog to allow addresses that are 7 characters long and more (vs. 8
characters previously).
It changes the `0x[0-9a-fA-F]{7}[0-9a-fA-F]+` by `0x[0-9a-fA-F]{7,}`.
rdar://97684839
Differential Revision: https://reviews.llvm.org/D131032
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/examples')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 9da94b98d9ce..1d1f8ba06f37 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -600,11 +600,11 @@ class TextCrashLogParser: thread_regex = re.compile('^Thread ([0-9]+)([^:]*):(.*)') app_backtrace_regex = re.compile('^Application Specific Backtrace ([0-9]+)([^:]*):(.*)') version = r'(\(.+\)|(arm|x86_)[0-9a-z]+)\s+' - frame_regex = re.compile(r'^([0-9]+)' r'\s' # id - r'+(.+?)' r'\s+' # img_name - r'(' +version+ r')?' # img_version - r'(0x[0-9a-fA-F]{7}[0-9a-fA-F]+)' # addr - r' +(.*)' # offs + frame_regex = re.compile(r'^([0-9]+)' r'\s+' # id + r'(.+?)' r'\s+' # img_name + r'(' +version+ r')?' # img_version + r'(0x[0-9a-fA-F]{7,})' # addr (7 chars or more) + r' +(.*)' # offs ) null_frame_regex = re.compile(r'^([0-9]+)\s+\?\?\?\s+(0{7}0+) +(.*)') image_regex_uuid = re.compile(r'(0x[0-9a-fA-F]+)' # img_lo |