[lldb/crashlog] Fix frame parser regex for when there is no source info
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 4 Nov 2022 21:49:52 +0000 (14:49 -0700)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 5 Nov 2022 05:05:58 +0000 (22:05 -0700)
commit3e8c1c4fc48a286dd546899a7374dce680633d93
tree3f5381163a4b9a0645ae6d9a27cd00521d45018e
parent670329036189040edb6c21e4fd1d98c0c979a9e2
[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>
lldb/examples/python/crashlog.py
lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.crash