[Lldb-commits] [lldb] 3054a0c - [lldb/crashlog] Remove dead code (NFC)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 18 12:50:59 PDT 2023


Author: Med Ismail Bennani
Date: 2023-08-18T20:50:39+01:00
New Revision: 3054a0c4bc50856156f26b528895ddcfba4210fa

URL: https://github.com/llvm/llvm-project/commit/3054a0c4bc50856156f26b528895ddcfba4210fa
DIFF: https://github.com/llvm/llvm-project/commit/3054a0c4bc50856156f26b528895ddcfba4210fa.diff

LOG: [lldb/crashlog] Remove dead code (NFC)

This patch cleans up the crashlog.py script and removes dead code.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>

Added: 
    

Modified: 
    lldb/examples/python/crashlog.py

Removed: 
    


################################################################################
diff  --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 216eb7c56690cc..10e89b10fbb1df 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -1228,11 +1228,6 @@ def parse_instructions(self, line):
         pass
 
 
-def usage():
-    print("Usage: lldb-symbolicate.py [-n name] executable-image")
-    sys.exit(0)
-
-
 def save_crashlog(debugger, command, exe_ctx, result, dict):
     usage = "save_crashlog [options] <output-path>"
     description = """Export the state of current target into a crashlog file"""


        


More information about the lldb-commits mailing list