llvm-dwarfdump [options] [filename ...]
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.
Disassemble all supported DWARF sections.
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.
Show a debug info entry’s children when using the --debug-info, --find, and --name options.
Search for the exact text <name> in the accelerator tables and print the matching debug information entries. When there is no accelerator tables or the name of the DIE you are looking for is not found in the accelerator tables, try using the slower but more complete --name option.
Show DWARF form types after the DWARF attribute types.
Show help and usage for this command.
Ignore case distinctions in when searching entries by name or by regular expression.
Find and print all debug info entries whose name (DW_AT_name attribute) matches the exact text in <pattern>. Use the --regex option to have <pattern> become a regular expression for more flexible pattern matching.
Lookup <address> in the debug information and print out the file, function, block, and line table details.
Redirect output to a file specified by <path>.
Show a debug info entry’s parent objects when using the --debug-info, --find, and --name options.
Only recurse to a maximum depth of <n> when dumping debug info entries.
Collect debug info quality metrics and print the results as machine-readable single-line JSON output.
Treat any <pattern> strings as regular expressions when searching instead of just as an exact string match.
Show the UUID for each architecture.
Dump the output in a format that is more friendly for comparing DWARF output from two different files.
Display verbose information when dumping. This can help to debug DWARF issues.
Verify the structure of the DWARF information by verifying the compile unit chains, DIE relationships graph, address ranges, and more.
Display the version of the tool.
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, else the entire section will be dumped. Children of items at a specific offset can be dumped by also using the --show-children option where applicable.
llvm-dwarfdump returns 0 if the input files were parsed and dumped successfully. Otherwise, it returns 1.
dsymutil(1)