LLVM-DWARFDUMP(1)
π NAME π
Hey bestie! Welcome to llvm-dwarfdump(1) β the LLVM manual page for llvm-dwarfdump. It's literally your new bestie for dumping and verifying DWARF debug information. No cap, this tool has main character energy. β¨
πΈ SYNOPSIS πΈ
llvm-dwarfdump [options] [filename ...]
π¦ DESCRIPTION π¦
Okay so llvm-dwarfdump parses DWARF sections in object files, archives, and .dSYM bundles and prints their contents in human-readable form. Only the .debug_info section is printed unless one of the section-specific options or --all is specified. That's the default vibe check.
If no input file is specified, a.out is used instead. If - is used as the input file, llvm-dwarfdump reads the input from its standard input stream. Slay.
β¨ OPTIONS β¨
-a,--allβ dump all supported DWARF sections. All of them. Periodt.--arch=<arch>β dump DWARF debug information for the specified CPU architecture. Architectures may be specified by name or by number. This option can be specified multiple times, once for each desired architecture. All CPU architectures will be printed by default.-c,--show-childrenβ show a debug info entry's children when selectively printing with the=<offset>argument of--debug-info, or options such as--findor--name.--colorβ use colors in output. π-f <name>,--find=<name>β search for the exact text<name>in the accelerator tables and print the matching debug information entries. When there are no accelerator tables, or the name of the DIE you're looking for isn't in the accelerator tables, try using the slower but more complete--nameoption.-F,--show-formβ show DWARF form types after the DWARF attribute types.-h,--helpβ show help and usage for this command.--help-listβ show help and usage for this command without grouping the options into categories.-i,--ignore-caseβ ignore case distinctions when using--name.-n <name>,--name=<name>β find and print all debug info entries whose name (DW_AT_nameattribute) is<name>.--lookup=<address>β look up<address>in the debug information and print out the file, function, block, and line table details.-o <path>β redirect output to a file specified by<path>, where-is the standard output stream.-p,--show-parentsβ show a debug info entry's parents when selectively printing with the=<offset>argument of--debug-info, or options such as--findor--name.--parent-recurse-depth=<N>β when displaying debug info entry parents, only show them to a maximum depth of<N>.--quietβ use with--verifyto not emit to STDOUT.-r <N>,--recurse-depth=<N>β when displaying debug info entries, only show children to a maximum depth of<N>.--show-section-sizesβ show the sizes of all debug sections, expressed in bytes.--show-sourcesβ print all source files mentioned in the debug information. Absolute paths are given whenever possible.--statisticsβ collect debug info quality metrics and print the results as machine-readable single-line JSON output. The output format is described in the section below (FORMAT OF STATISTICS OUTPUT).--summarize-typesβ abbreviate the description of type unit entries.-x,--regexβ treat any<name>strings as regular expressions when searching with--name. If--ignore-caseis also specified, the regular expression becomes case-insensitive.-u,--uuidβ show the UUID for each architecture.--diffβ dump the output in a format that is more friendly for comparing DWARF output from two different files.-v,--verboseβ display verbose information when dumping. This can help to debug DWARF issues.--verifyβ verify the structure of the DWARF information by verifying the compile unit chains, DIE relationships graph, address ranges, and more.--versionβ display the version of the tool.
π§ DWARF section-by-name dump options π§
All of the options below dump the specified DWARF section by name. Only the .debug_info section is shown by default. Some entries support adding an =<offset> as a way to provide an optional offset of the exact entry to dump within the respective section. When an offset is provided, only the entry at that offset will be dumped; otherwise the entire section will be dumped.
--debug-abbrevβ dump the named DWARF section.--debug-addrβ dump the named DWARF section.--debug-arangesβ dump the named DWARF section.--debug-cu-indexβ dump the named DWARF section.--debug-frame [=<offset>]β dump the named DWARF section.--debug-gnu-pubnamesβ dump the named DWARF section.--debug-gnu-pubtypesβ dump the named DWARF section.--debug-info [=<offset>]β dump the named DWARF section.--debug-line [=<offset>]β dump the named DWARF section.--debug-line-strβ dump the named DWARF section.--debug-loc [=<offset>]β dump the named DWARF section.--debug-loclists [=<offset>]β dump the named DWARF section.--debug-macroβ dump the named DWARF section.--debug-namesβ dump the named DWARF section.--debug-pubnamesβ dump the named DWARF section.--debug-pubtypesβ dump the named DWARF section.--debug-rangesβ dump the named DWARF section.--debug-rnglistsβ dump the named DWARF section.--debug-strβ dump the named DWARF section.--debug-str-offsetsβ dump the named DWARF section.--debug-tu-indexβ dump the named DWARF section.--debug-types [=<offset>]β dump the named DWARF section.--eh-frame [=<offset>]β dump the named DWARF section.--gdb-indexβ dump the named DWARF section.--apple-namesβ dump the named DWARF section.--apple-typesβ dump the named DWARF section.--apple-namespacesβ dump the named DWARF section.--apple-objcβ dump the named DWARF section.
The --debug-macro option prints both the .debug_macro and the .debug_macinfo sections.
The --debug-frame and --eh-frame options are aliases: in cases where both sections are present, one command outputs both.
@<FILE>β read command-line options from<FILE>.
π FORMAT OF STATISTICS OUTPUT π
The --statistics option generates single-line JSON output representing quality metrics of the processed debug info. These metrics are useful to compare changes between two compilers, particularly for judging the effect that a change to the compiler has on the debug info quality.
The output is formatted as key-value pairs. The first pair contains a version number. The following naming scheme is used for the keys:
variables==> local variables and parameterslocal vars==> local variablesparams==> formal parameters
For aggregated values, the following keys are used:
sum_of_all_variables(...)==> the sum applied to all variables#bytes==> the number of bytes#variables - entry values ...==> the number of variables excluding the entry values etc.
π¦ EXIT STATUS π¦
llvm-dwarfdump returns 0 if the input files were parsed and dumped successfully. Otherwise, it returns 1.
π SEE ALSO π
π«Ά AUTHOR π«Ά
Maintained by the LLVM Team (https://llvm.org/).
π COPYRIGHT π
2003-2023, LLVM Project
Catch you later, bestie! π
This page is from LLVM-DWARFDUMP(1), version 17, dated 2023-12-01. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-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