From 447c920a8adfc07f46f61b2a5099ea5b50628645 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 13 May 2022 15:32:29 -0700 Subject: [PATCH] [lldb] Remove unused imports from crashlog.py --- lldb/examples/python/crashlog.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 0bcdcd0a9fe68..33a64559d4821 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -26,11 +26,9 @@ # PYTHONPATH=/path/to/LLDB.framework/Resources/Python ./crashlog.py ~/Library/Logs/DiagnosticReports/a.crash #---------------------------------------------------------------------- -import cmd import concurrent.futures import contextlib import datetime -import glob import json import optparse import os @@ -526,10 +524,10 @@ def parse_frames(self, thread, json_frames): thread.frames.append(self.crashlog.Frame(idx, pc, frame_offset)) # on arm64 systems, if it jump through a null function pointer, - # we end up at address 0 and the crash reporter unwinder - # misses the frame that actually faulted. - # But $lr can tell us where the last BL/BLR instruction used - # was at, so insert that address as the caller stack frame. + # we end up at address 0 and the crash reporter unwinder + # misses the frame that actually faulted. + # But $lr can tell us where the last BL/BLR instruction used + # was at, so insert that address as the caller stack frame. if idx == 0 and pc == 0 and "lr" in thread.registers: pc = thread.registers["lr"] for image in self.data['usedImages']: