[Lldb-commits] [PATCH] D157137: [lldb/crashlog] Skip images with empty path and 0 UUID from loading
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 11 18:29:31 PDT 2023
mib updated this revision to Diff 549560.
mib added a comment.
Address @bulbazord comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157137/new/
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
@@ -396,6 +396,9 @@
def add_module(self, target, obj_dir=None):
"""Add the Image described in this object to "target" and load the sections if "load" is True."""
+ if not self.path and self.uuid == uuid.UUID(int=0):
+ return "error: invalid image (%s) " % self.identifier
+
if target:
# Try and find using UUID only first so that paths need not match
# up
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157137.549560.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230812/374141d4/attachment.bin>
More information about the lldb-commits
mailing list