[Lldb-commits] [PATCH] D151844: [lldb/crashlog] Fix crash when loading non-symbolicated report

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 1 17:11:12 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa5a6c03c448b: [lldb/crashlog] Fix crash when loading non-symbolicated report (authored by mib).

Changed prior to commit:
  https://reviews.llvm.org/D151844?vs=527212&id=527673#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151844

Files:
  lldb/examples/python/crashlog.py


Index: lldb/examples/python/crashlog.py
===================================================================
--- lldb/examples/python/crashlog.py
+++ lldb/examples/python/crashlog.py
@@ -598,7 +598,9 @@
 
             if "symbol" in json_frame:
                 symbol = json_frame["symbol"]
-                location = int(json_frame["symbolLocation"])
+                location = 0
+                if "symbolLocation" in json_frame and json_frame["symbolLocation"]:
+                    location = int(json_frame["symbolLocation"])
                 image = self.images[image_id]
                 image.symbols[symbol] = {
                     "name": symbol,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151844.527673.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230602/64e9fa29/attachment-0001.bin>


More information about the lldb-commits mailing list