LLVM-DWARFDUMP(1)
β¨ NAME β¨
llvm-dwarfdump β okay so this is the manual page for llvm-dwarfdump 16, and it's the tool that spills all your DWARF debug info tea. π
πΈ DESCRIPTION πΈ
OVERVIEW: it pretty-prints DWARF debug information in object files and debug info archives. no cap, it's giving "microscope for your binaries." π¬β¨
USAGE:
llvm-dwarfdump [options] <input object files or .dSYM bundles>
π OPTIONS π
π Color Options
--colorβ adds color to the output, bestie π (default=autodetect).
β Generic Options
--helpβ shows you all the available options (and if you want even more,--help-hiddenhas the hidden ones π).--help-listβ shows you a list of the available options (and--help-list-hiddenfor the secret menu π).--versionβ prints the version of this program. slay.
π¦ Section-specific Dump Options
These are the ones that control which sections get dumped. Where it applies, these take an optional =<offset> argument so you only dump the entry at that exact offset. β¨
-aβ alias for--all--allβ dumps all debug info sections, all of them, the whole vibe π--apple-namesβ dumps the.apple_namessection--apple-namespacesβ dumps the.apple_namespacessection--apple-objcβ dumps the.apple_objcsection--apple-typesβ dumps the.apple_typessection--debug-abbrevβ dumps the.debug_abbrevsection--debug-addrβ dumps the.debug_addrsection--debug-arangesβ dumps the.debug_arangessection--debug-cu-indexβ dumps the.debug_cu_indexsection--debug-frame[=<offset>]β dumps the.debug_framesection--debug-gnu-pubnamesβ dumps the.debug_gnu_pubnamessection--debug-gnu-pubtypesβ dumps the.debug_gnu_pubtypessection--debug-info[=<offset>]β dumps the.debug_infosection--debug-line[=<offset>]β dumps the.debug_linesection--debug-line-strβ dumps the.debug_line_strsection--debug-loc[=<offset>]β dumps the.debug_locsection--debug-loclists[=<offset>]β dumps the.debug_loclistssection--debug-macroβ dumps the.debug_macrosection--debug-namesβ dumps the.debug_namessection--debug-pubnamesβ dumps the.debug_pubnamessection--debug-pubtypesβ dumps the.debug_pubtypessection--debug-rangesβ dumps the.debug_rangessection--debug-rnglistsβ dumps the.debug_rnglistssection--debug-strβ dumps the.debug_strsection--debug-str-offsetsβ dumps the.debug_str_offsetssection--debug-tu-indexβ dumps the.debug_tu_indexsection--debug-types[=<offset>]β dumps the.debug_typessection--eh-frameβ alias for--debug-frame--gdb-indexβ dumps the.gdb_indexsection
π Specific Options
-Fβ alias for--show-form.--arch=<string>β only dumps debug information for the CPU architecture you name. you can name the architecture by name or by number. and yes bestie, you can pass this option multiple times, once for each architecture you want. π-cβ alias for--show-children.--diffβ emits diff-friendly output by leaving out offsets and addresses. perfect for comparison szn π«Ά-fβ alias for--find.--find=<name>β searches for the exact match for<name>in the accelerator tables and prints the matching debug information entries. when no accelerator tables are available, you can use the slower but more complete-nameoption instead. π’-iβ alias for--ignore-case.--ignore-caseβ ignores case distinctions when you're using--name.--lookup=<address>β looks up<address>in the debug information and prints out any available file, function, block and line table details. π-nβ alias for--name--name=<pattern>β finds and prints all debug info entries whose name (theDW_AT_nameattribute) matches the exact text in<pattern>. when you use it with the-regexoption,<pattern>gets interpreted as a regular expression. β¨-o <filename>β redirects output to the file you specify. π-pβ alias for--show-parents.--parent-recurse-depth=<N>β only recurses to a depth of N when displaying the parents of debug info entries.--quietβ use it with-verifyso it doesn't emit to STDOUT. π€«-rβ alias for--recurse-depth.--recurse-depth=<N>β only recurses to a depth of N when displaying the children of debug info entries.--regexβ treats any<pattern>strings as regular expressions when searching with--name. and if--ignore-caseis also specified, the regular expression becomes case-insensitive. π--show-childrenβ shows a debug info entry's children when you're selectively printing entries. π§--show-formβ shows DWARF form types after the DWARF attribute types.--show-parentsβ shows a debug info entry's parents when you're selectively printing entries. π«Ά--show-section-sizesβ shows the sizes of all debug sections, expressed in bytes.--show-sourcesβ shows the sources across all compilation units.--statisticsβ emits JSON-formatted debug info quality metrics. π--summarize-typesβ abbreviates the description of type unit entries.-uβ alias for--uuid.--uuidβ shows the UUID for each architecture. π-vβ alias for--verbose.--verboseβ prints more low-level encoding details. π--verifyβ verifies the DWARF debug info. β-xβ alias for--regex
and oh β you can also pass @FILE as an argument to read options from FILE. πβ¨
π that's the whole page, diva. it's llvm-dwarfdump 16, dated April 2024, straight outta LLVM. mwah, now go debug something iconic ππ
π¦ where this page comes from
- ubuntu noble: llvm-16 1:16.0.6-23ubuntu4 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms