mib created this revision. mib added reviewers: JDevlieghere, bulbazord. mib added a project: LLDB. Herald added a project: All. mib requested review of this revision. Herald added a subscriber: lldb-commits.
This patch skips images with an empty path or a 0 UUID from loading as a SymbolFileJSON. rdar://112107986 Signed-off-by: Med Ismail Bennani <ism...@bennani.ma> Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D157137 Files: lldb/examples/python/symbolication.py Index: lldb/examples/python/symbolication.py =================================================================== --- lldb/examples/python/symbolication.py +++ lldb/examples/python/symbolication.py @@ -411,6 +411,11 @@ ) if not self.module and self.section_infos: name = os.path.basename(self.path) + if not name: + if self.uuid == uuid.UUID(int=0): + return None + else: + return "error: invalid image path with valid UUID (%s) " % uuid_str if obj_dir and os.path.isdir(obj_dir): data = { "triple": target.triple,
Index: lldb/examples/python/symbolication.py =================================================================== --- lldb/examples/python/symbolication.py +++ lldb/examples/python/symbolication.py @@ -411,6 +411,11 @@ ) if not self.module and self.section_infos: name = os.path.basename(self.path) + if not name: + if self.uuid == uuid.UUID(int=0): + return None + else: + return "error: invalid image path with valid UUID (%s) " % uuid_str if obj_dir and os.path.isdir(obj_dir): data = { "triple": target.triple,
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits