[Lldb-commits] [lldb] 447c920 - [lldb] Remove unused imports from crashlog.py

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Sat May 14 08:59:01 PDT 2022


Author: Jonas Devlieghere
Date: 2022-05-14T08:58:55-07:00
New Revision: 447c920a8adfc07f46f61b2a5099ea5b50628645

URL: https://github.com/llvm/llvm-project/commit/447c920a8adfc07f46f61b2a5099ea5b50628645
DIFF: https://github.com/llvm/llvm-project/commit/447c920a8adfc07f46f61b2a5099ea5b50628645.diff

LOG: [lldb] Remove unused imports from crashlog.py

Added: 
    

Modified: 
    lldb/examples/python/crashlog.py

Removed: 
    


################################################################################
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']:


        


More information about the lldb-commits mailing list