[lldb/crashlog] Fix crash when loading non-symbolicated report
authorMed Ismail Bennani <ismail@bennani.ma>
Wed, 31 May 2023 22:29:24 +0000 (15:29 -0700)
committerMed Ismail Bennani <ismail@bennani.ma>
Fri, 2 Jun 2023 00:10:57 +0000 (17:10 -0700)
commita5a6c03c448ba1ab404b58673eef1f7b68498dff
treebc82c47b1a728e67b295a8e74f841f1c7e5079ba
parent378f1885e3536ddf93e780f25a84ad493140ff42
[lldb/crashlog] Fix crash when loading non-symbolicated report

This patch should address the crashes when parsing a the crash report
frame dictionary.

If the crash report is not symbolicated, the `symbolLocation` key will
be missing. In that case, we should just use the `imageOffset`.

rdar://109836386

Differential Revision: https://reviews.llvm.org/D151844

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
lldb/examples/python/crashlog.py