diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-11-04 14:49:52 -0700 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-11-04 22:05:58 -0700 |
commit | 3e8c1c4fc48a286dd546899a7374dce680633d93 (patch) | |
tree | 3f5381163a4b9a0645ae6d9a27cd00521d45018e /lldb/examples/python/crashlog.py | |
parent | 670329036189040edb6c21e4fd1d98c0c979a9e2 (diff) | |
download | llvm-3e8c1c4fc48a286dd546899a7374dce680633d93.zip llvm-3e8c1c4fc48a286dd546899a7374dce680633d93.tar.gz llvm-3e8c1c4fc48a286dd546899a7374dce680633d93.tar.bz2 |
[lldb/crashlog] Fix frame parser regex for when there is no source info
It can happen that the originator of a crash report doesn't have access
to certain images. When that's the case, ReportCrash won't show the
source info in the crash report stack frames, but only the stack address
and image name.
This patch fixes a bug in the crashlog stackframe parser regular
expression to optionally match the source info group.
rdar://101934135
Differential Revision: https://reviews.llvm.org/D137466
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-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 47250f3..c3a450c 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -645,7 +645,7 @@ class TextCrashLogParser(CrashLogParser): r'(.+?)\s+' # img_name r'(?:' +version+ r'\s+)?' # img_version r'(0x[0-9a-fA-F]{4,})' # addr (4 chars or more) - r' +(.*)' # offs + r'(?: +(.*))?' # offs ) null_frame_regex = re.compile(r'^\d+\s+\?\?\?\s+0{4,} +') image_regex_uuid = re.compile(r'(0x[0-9a-fA-F]+)' # img_lo |