[lldb] Remove unused imports from crashlog.py
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 13 May 2022 22:32:29 +0000 (15:32 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Sat, 14 May 2022 15:58:55 +0000 (08:58 -0700)
lldb/examples/python/crashlog.py

index 0bcdcd0..33a6455 100755 (executable)
 #   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 @@ class JSONCrashLogParser:
             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']: