diff options
| author | Med Ismail Bennani <ismail@bennani.ma> | 2023-08-11 23:59:17 -0700 |
|---|---|---|
| committer | Med Ismail Bennani <ismail@bennani.ma> | 2023-08-11 23:59:42 -0700 |
| commit | 706e875da3a21f2d6ba612ca991dbdbccb339327 (patch) | |
| tree | 92e1dc13ba0cca2b57591ddb9f1106aa6ca318ed /lldb/examples/python | |
| parent | 75bed9655a54c82e0485b28026605cb8e1f7c78a (diff) | |
[lldb/crashlog] Skip images with empty path and 0 UUID from loading
This patch skips images with an empty path or a 0 UUID from loading as a
SymbolFileJSON.
rdar://112107986
Differential Revision: https://reviews.llvm.org/D157137
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'lldb/examples/python')
| -rwxr-xr-x | lldb/examples/python/symbolication.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/examples/python/symbolication.py b/lldb/examples/python/symbolication.py index 467675e1d984..f6dcc8b9a794 100755 --- a/lldb/examples/python/symbolication.py +++ b/lldb/examples/python/symbolication.py @@ -396,6 +396,9 @@ class Image: 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 |
