LLVM-DWARFUTIL(1)

πŸ“¦ version 15.0.7, in opensuse-leap 16.0

🌸 NAME 🌸

llvm-dwarfutil β€” a tool to copy and manipulate debug info. This is the LLVM-DWARFUTIL(1) manual page, bestie πŸ’–

✨ SYNOPSIS ✨

llvm-dwarfutil [options] input output

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so llvm-dwarfutil is a tool to copy and manipulate debug info. In basic usage, it makes a semantic copy of the input to the output. If any options are specified, the output may be modified along the way β€” for example, by removing unused debug info. It’s giving β€œsemantic copy, but make it fashion” ✨.

If - is specified for the input file, the input is read from the program’s standard input stream. If - is specified for the output file, the output is written to the standard output stream of the program.

The tool is still in active development. Still cooking, bestie 😭.

πŸ’… COMMAND-LINE OPTIONS πŸ’…

Here’s the whole menu β€” every flag, no skipping:

  • --garbage-collection β€” Removes pieces of debug information related to discarded sections. When the linker does section garbage collection, the abandoned debug info is left behind. Such abandoned debug info references address ranges using tombstone values. So when this option is specified, the tool removes debug info which is marked with the tombstone value. That option is enabled by default.
  • --odr-deduplication β€” Remove duplicated types (if β€œOne Definition Rule” is supported by the source language). Keeps the first type definition and removes the other definitions, potentially significantly reducing the size of output debug info. That option is enabled by default.
  • --help, -h β€” Print a summary of command line options. Tiny cheat-sheet energy πŸŽ€.
  • --no-garbage-collection β€” Disable --garbage-collection.
  • --no-odr-deduplication β€” Disable --odr-deduplication.
  • --no-separate-debug-file β€” Disable --separate-debug-file.
  • --num-threads=<n>, -j β€” Specifies the maximum number (n) of simultaneous threads to use for processing. Parallel bestie era 🌈.
  • --separate-debug-file β€” Generate a separate file containing the output debug info. Using llvm-dwarfutil with that option equals the following set of commands:
:program:`llvm-objcopy` --only-keep-debug in-file out-file.debug
:program:`llvm-objcopy` --strip-debug in-file out-file
:program:`llvm-objcopy` --add-gnu-debuglink=out-file.debug out-file
  • --tombstone=<value> β€” <value> can be one of the following values:
    • bfd: zero for all addresses and [1,1] for DWARF v4 (or less) address ranges and exec.
    • maxpc: -1 for all addresses and -2 for DWARF v4 (or less) address ranges.
    • universal: both bfd and maxpc.
    • exec: match with address ranges of executable sections.

The value universal is used by default.

  • --verbose β€” Enable verbose logging. This option disables multi-thread mode.
  • --verify β€” Run the DWARF verifier on the output DWARF debug info.
  • --version β€” Print the version of this program.

πŸ‘‘ SUPPORTED FORMATS πŸ‘‘

The following formats are currently supported by llvm-dwarfutil: ELF.

⭐ EXIT STATUS ⭐

llvm-dwarfutil exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0.

πŸ“ BUGS πŸ“

To report bugs, please visit https://github.com/llvm/llvm-project/labels/tools:llvm-dwarfutil/. No cap, they want the receipts 🫢.

🧚 AUTHOR 🧚

Maintained by the LLVM Team (https://llvm.org/).

2003-2023, LLVM Project


This iconic page is from LLVM 15, dated 2023-01-14, and it’s the LLVM-DWARFUTIL(1) manual β€” k bye bestie, go copy some debug info πŸ’…πŸ«Ά

πŸ“¦ where this page comes from