[Lldb-commits] [PATCH] D126260: [lldb/crashlog] Add support for Application Specific Backtraces

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 23 17:32:08 PDT 2022


JDevlieghere added a comment.

Test? :-)



================
Comment at: lldb/examples/python/crashlog.py:567-570
+            frame_regex = re.compile(r'^([0-9]+)' r'\s'                # id
+                            r'+(.+?)'    r'\s+'               # img_name
+                            r'(0x[0-9a-fA-F]{7}[0-9a-fA-F]+)' # addr
+                            r' +(.*)'                         # offs
----------------
Do we have an existing regex for this from the textual parser?


================
Comment at: lldb/examples/python/crashlog.py:576
+                if not frame_match:
+                    print("error: Couldn't parse Application Specific Backtrace.")
+                    return False
----------------
For consistency with the other errors


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126260/new/

https://reviews.llvm.org/D126260



More information about the lldb-commits mailing list