[Lldb-commits] [PATCH] D117165: [lldb] Add long help to `crashlog`

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 12 15:25:57 PST 2022


kastiglione added a comment.
Herald added a subscriber: JDevlieghere.

The output of `help crashlog` is:

  (lldb) help crashlog 
  For more information run 'help crashlog'  Expects 'raw' input (see 'help raw-input'.)
  
  Syntax: crashlog
  Usage: crashlog [options] <FILE> [FILE ...]
  
  Symbolicate one or more darwin crash log files to provide source file and line
  information, inlined stack frames back to the concrete functions, and
  disassemble the location of the crash for the first frame of the crashed
  thread. If this script is imported into the LLDB command interpreter, a
  "crashlog" command will be added to the interpreter for use at the LLDB
  command line. After a crash log has been parsed and symbolicated, a target
  will have been created that has all of the shared libraries loaded at the load
  addresses found in the crash log file. This allows you to explore the program
  as if it were stopped at the locations described in the crash log and
  functions can be disassembled and lookups can be performed using the addresses
  found in the crash log.
  
  Options:
    -h, --help            show this help message and exit
    -v, --verbose         display verbose debug info
    -g, --debug           display verbose debug logging
    -a, --load-all        load all executable images, not just the images found
                          in the crashed stack frames
    --images              show image list
    --debug-delay=NSEC    pause for NSEC seconds for debugger
    -c, --crashed-only    only symbolicate the crashed thread
    -d DISASSEMBLE_DEPTH, --disasm-depth=DISASSEMBLE_DEPTH
                          set the depth in stack frames that should be
                          disassembled (default is 1)
    -D, --disasm-all      enabled disassembly of frames on all threads (not just
                          the crashed thread)
    -B DISASSEMBLE_BEFORE, --disasm-before=DISASSEMBLE_BEFORE
                          the number of instructions to disassemble before the
                          frame PC
    -A DISASSEMBLE_AFTER, --disasm-after=DISASSEMBLE_AFTER
                          the number of instructions to disassemble after the
                          frame PC
    -C NLINES, --source-context=NLINES
                          show NLINES source lines of source context (default =
                          4)
    --source-frames=NFRAMES
                          show source for NFRAMES (default = 4)
    --source-all          show source for all threads, not just the crashed
                          thread
    -i, --interactive     parse all crash logs and enter interactive mode


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117165/new/

https://reviews.llvm.org/D117165



More information about the lldb-commits mailing list