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,
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,
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits