LLVM-DWARFUTIL(1)
πΈ 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. Usingllvm-dwarfutilwith 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 andexec.maxpc:-1for all addresses and-2for DWARF v4 (or less) address ranges.universal: bothbfdandmaxpc.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/).
π COPYRIGHT π
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
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms