Fix buildbot failures with the newly added test case (triple was missing).
[llvm-core.git] / docs / CommandGuide / llvm-dwarfdump.rst
bloba3b62664cbe54b904fcbc5607df0ba1396e88452
1 llvm-dwarfdump - dump and verify DWARF debug information
2 ========================================================
4 SYNOPSIS
5 --------
7 :program:`llvm-dwarfdump` [*options*] [*filename ...*]
9 DESCRIPTION
10 -----------
12 :program:`llvm-dwarfdump` parses DWARF sections in object files,
13 archives, and `.dSYM` bundles and prints their contents in
14 human-readable form. Only the .debug_info section is printed unless one of
15 the section-specific options or :option:`--all` is specified.
17 OPTIONS
18 -------
20 .. option:: -a, --all
22             Disassemble all supported DWARF sections.
24 .. option:: --arch=<arch>
26             Dump DWARF debug information for the specified CPU architecture.
27             Architectures may be specified by name or by number.  This
28             option can be specified multiple times, once for each desired
29             architecture.  All CPU architectures will be printed by
30             default.
32 .. option:: -c, --show-children
34             Show a debug info entry's children when using
35             the :option:`--debug-info`, :option:`--find`,
36             and :option:`--name` options.
38 .. option:: -f <name>, --find=<name>
40             Search for the exact text <name> in the accelerator tables
41             and print the matching debug information entries.
42             When there is no accelerator tables or the name of the DIE
43             you are looking for is not found in the accelerator tables,
44             try using the slower but more complete :option:`--name` option.
46 .. option:: -F, --show-form
48             Show DWARF form types after the DWARF attribute types.
50 .. option:: -h, --help
52             Show help and usage for this command.
54 .. option:: -i, --ignore-case
56             Ignore case distinctions in when searching entries by name
57             or by regular expression.
59 .. option:: -n <pattern>, --name=<pattern>
61             Find and print all debug info entries whose name
62             (`DW_AT_name` attribute) matches the exact text in
63             <pattern>. Use the :option:`--regex` option to have
64             <pattern> become a regular expression for more flexible
65             pattern matching.
67 .. option:: --lookup=<address>
69             Lookup <address> in the debug information and print out the file,
70             function, block, and line table details.
72 .. option:: -o <path>, --out-file=<path>
74             Redirect output to a file specified by <path>.
76 .. option:: -p, --show-parents
78             Show a debug info entry's parent objects when using the
79             :option:`--debug-info`, :option:`--find`, and
80             :option:`--name` options.
82 .. option:: -r <n>, --recurse-depth=<n>
84             Only recurse to a maximum depth of <n> when dumping debug info
85             entries.
87 .. option:: --statistics
89             Collect debug info quality metrics and print the results
90             as machine-readable single-line JSON output.
92 .. option:: -x, --regex
94             Treat any <pattern> strings as regular expressions when searching
95             instead of just as an exact string match.
97 .. option:: -u, --uuid
99             Show the UUID for each architecture.
101 .. option:: --diff
103             Dump the output in a format that is more friendly for comparing
104             DWARF output from two different files.
106 .. option:: -v, --verbose
108             Display verbose information when dumping. This can help to debug
109             DWARF issues.
111 .. option:: --verify
113             Verify the structure of the DWARF information by verifying the
114             compile unit chains, DIE relationships graph, address
115             ranges, and more.
117 .. option:: --version
119             Display the version of the tool.
121 .. option:: --debug-abbrev, --debug-aranges, --debug-cu-index, --debug-frame [=<offset>], --debug-gnu-pubnames, --debug-gnu-pubtypes, --debug-info [=<offset>], --debug-line [=<offset>], --debug-loc [=<offset>], --debug-macro, --debug-pubnames, --debug-pubtypes, --debug-ranges, --debug-str, --debug-str-offsets, --debug-tu-index, --debug-types, --eh-frame, --gdb-index, --apple-names, --apple-types, --apple-namespaces, --apple-objc
123             Dump the specified DWARF section by name. Only the
124             `.debug_info` section is shown by default. Some entries
125             support adding an `=<offset>` as a way to provide an
126             optional offset of the exact entry to dump within the
127             respective section. When an offset is provided, only the
128             entry at that offset will be dumped, else the entire
129             section will be dumped. Children of items at a specific
130             offset can be dumped by also using the
131             :option:`--show-children` option where applicable.
133 EXIT STATUS
134 -----------
136 :program:`llvm-dwarfdump` returns 0 if the input files were parsed and dumped
137 successfully. Otherwise, it returns 1.
139 SEE ALSO
140 --------
142 :manpage:`dsymutil(1)`