From 05cdd294ab020b42329413ae7ab52d0c5aaf8151 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 3 Sep 2021 13:23:03 -0700 Subject: [PATCH] [lldb] Adjust parse_frames for unnamed images Follow up to 2cbd3b04feaaaff7fab4c6500476839a23180886 which added support for unnamed images but missed the use case in parse_frames. --- lldb/examples/python/crashlog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index a7b2d3b..79b290c 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -473,7 +473,8 @@ class JSONCrashLogParser: idx = 0 for json_frame in json_frames: image_id = int(json_frame['imageIndex']) - ident = self.get_used_image(image_id)['name'] + json_image = self.get_used_image(image_id) + ident = json_image['name'] if 'name' in json_image else '' thread.add_ident(ident) if ident not in self.crashlog.idents: self.crashlog.idents.append(ident) -- 2.7.4