LLVM-DWARFDUMP(1)
β¨ llvm-dwarfdump β¨
okay so bestie, welcome to llvm-dwarfdump β a manual page from the LLVM collection of manual pages, and she is the girl for dumping and verifying DWARF debug information π
πΈ NAME πΈ
llvm-dwarfdump β dump and verify DWARF debug information
π¦ SYNOPSIS π¦
llvm-dwarfdump [options] [filename ...]
π DESCRIPTION π
llvm-dwarfdump parses DWARF sections inside object files, archives, and .dSYM bundles, then prints what it found in a form that's actually readable by humans π«Ά
By default she only prints the .debug_info section. Like, only that one. If you want the other sections you gotta ask β either with one of the section-specific options or with --all.
If you don't give her any input file, she just uses a.out instead. And if you use - as the input file, llvm-dwarfdump reads the input from its standard input stream. iconic behaviour, no cap β¨
π OPTIONS π
-a,--allβ dump every DWARF section she supports. all of them. the whole buffet π--arch=<arch>β dump DWARF debug information for the specified CPU architecture. You can name the architecture or just give her the number, whatever's easier. This option can be given multiple times, once for each architecture you want. By default all CPU architectures get printed. every single one π-c,--show-childrenβ show a debug info entry's children when you're selectively printing with the=<offset>argument of--debug-info, or with options like--findor--name.--colorβ use colors in the output π yes she's serving aesthetics.--error-display=<value>β sets how much detail and how much summary she shows when verifying. This one implies--verify. The supported values are:quietβ only display whether errors occurred.summaryβ display only a summary of the errors found.detailsβ display each error in detail but no summary.fullβ display each error as well as a summary. [default]
-f <name>,--find=<name>β search for the exact text<name>in the accelerator tables and print the matching debug information entries. If there are no accelerator tables, or the name of the DIE you're hunting for isn't in the accelerator tables, try the slower but more complete--nameoption instead. lowkey the fallback is the real one π-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 you're using--name.-n <name>,--name=<name>β find and print all debug info entries whose name (theDW_AT_nameattribute) is<name>.--lookup=<address>β look up<address>in the debug information and print out the file, function, block, and line table details. the full receipt π§Ύ-o <path>β redirect output to a file specified by<path>, where-means the standard output stream.-p,--show-parentsβ show a debug info entry's parents when you're selectively printing with the=<offset>argument of--debug-info, or with options like--findor--name. family reunion fr fr π«Ά--parent-recurse-depth=<N>β when displaying debug info entry parents, only show them down to a maximum depth of<N>.--quietβ use with--verifyto not emit toSTDOUT. she's silent, she's mysterious π-r <N>,--recurse-depth=<N>β when displaying debug info entries, only show children down 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 below in the section 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. And if--ignore-caseis also specified, the regular expression becomes case-insensitive. multitasking queen β¨-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. she's yapping but it's useful yapping.--verifyβ verify the structure of the DWARF information by verifying the compile unit chains, DIE relationships graph, address ranges, and more. vibe check on your debug info π--verify-json=<path>β output a JSON-formatted error summary to a file specified by<path>. Implies--verify. The output format is described below in the section FORMAT OF VERIFY JSON OUTPUT.--versionβ display the version of the tool.--debug-abbrev,--debug-addr,--debug-aranges,--debug-cu-index,--debug-frame [=<offset>],--debug-gnu-pubnames,--debug-gnu-pubtypes,--debug-info [=<offset>],--debug-line [=<offset>],--debug-line-str,--debug-loc [=<offset>],--debug-loclists [=<offset>],--debug-macro,--debug-names,--debug-pubnames,--debug-pubtypes,--debug-ranges,--debug-rnglists,--debug-str,--debug-str-offsets,--debug-tu-index,--debug-types [=<offset>],--eh-frame [=<offset>],--gdb-index,--apple-names,--apple-types,--apple-namespaces,--apple-objcβ dump the specified DWARF section by name. Only the.debug_infosection is shown by default. Some of these entries support adding an=<offset>as a way to provide an optional offset of the exact entry to dump within the respective section. When you give an offset, only the entry at that offset gets dumped; otherwise the entire section gets dumped.
The --debug-macro option prints both the .debug_macro and the .debug_macinfo sections. two for one, slay π
The --debug-frame and --eh-frame options are aliases, and 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 for comparing changes between two compilers β especially for judging the effect that a change to the compiler has on the debug info quality. it's giving data π
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 parameters
- local vars ==> local variables
- params ==> 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.
π§ FORMAT OF VERIFY JSON OUTPUT π§
The format of the JSON output created by --verify-json is:
{
"error-categories": {
"<first category description>": {"count": 1234},
"<next category description>": {"count": 4321}
},
"error-count": 5555
}
And if there are no errors reported, this is what you get instead:
{
"error-categories": {},
"error-count": 0
}
π¦ EXIT STATUS π¦
llvm-dwarfdump returns 0 if the input files were parsed and dumped successfully. Otherwise, it returns 1. no in-between, she's decisive β
π₯ SEE ALSO π₯
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/).
π COPYRIGHT π
2003-2025, LLVM Project
okay bestie that's the whole page π«Ά she's from LLVM, this is version 20, dated 2025-09-03, and honestly? she ate. go dump some DWARF π β¨
π¦ where this page comes from
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms