aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-06-06 15:18:14 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-06-06 15:20:53 -0700
commita10019a496d420769d7aae94f234ab6cf9fd778d (patch)
tree77b607e68062b327b269d6888b4693334d89bb9a /lldb/examples/python/crashlog.py
parent087411010422ae50f412c74d3b1eeff0b680e74b (diff)
downloadllvm-a10019a496d420769d7aae94f234ab6cf9fd778d.zip
llvm-a10019a496d420769d7aae94f234ab6cf9fd778d.tar.gz
llvm-a10019a496d420769d7aae94f234ab6cf9fd778d.tar.bz2
[lldb] Fix "NameError: name 'self' is not defined" when using crashlog -c
This fixes a regression introduced by 27f27d15f6c9 that results in a NameError: (name 'self' is not defined) when using crashlog with the -c option. rdar://110007391
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 36825b0..ea197e4 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -1307,7 +1307,7 @@ def SymbolicateCrashLog(crash_log, options):
for thread in crash_log.threads:
if thread.did_crash():
for ident in thread.idents:
- for image in self.crashlog.find_images_with_identifier(ident):
+ for image in crash_log.find_images_with_identifier(ident):
image.resolve = True
futures = []