[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
Sat Aug 12 00:00:40 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG706e875da3a2: [lldb/crashlog] Skip images with empty path and 0 UUID from loading (authored by mib).

Changed prior to commit:
  https://reviews.llvm.org/D157137?vs=549560&id=549580#toc

Repository:
  rG LLVM Github Monorepo

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"
+
         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.549580.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230812/0366967b/attachment.bin>


More information about the lldb-commits mailing list