[Lldb-commits] [PATCH] D131032: [lldb/crashlog] Update frame regex matcher
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 3 14:26:30 PDT 2022
mib updated this revision to Diff 449785.
mib edited the summary of this revision.
mib added a comment.
Implement @kastiglione's suggestion
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131032/new/
https://reviews.llvm.org/D131032
Files:
lldb/examples/python/crashlog.py
Index: lldb/examples/python/crashlog.py
===================================================================
--- lldb/examples/python/crashlog.py
+++ lldb/examples/python/crashlog.py
@@ -600,11 +600,11 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131032.449785.patch
Type: text/x-patch
Size: 1343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220803/65b409c5/attachment.bin>
More information about the lldb-commits
mailing list