2 .\" Man page generated from reStructuredText.
4 .TH "LLVM-DWARFDUMP" "1" "2020-06-26" "10" "LLVM"
6 llvm-dwarfdump \- dump and verify DWARF debug information
8 .nr rst2man-indent-level 0
12 level \\n[rst2man-indent-level]
13 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
20 .\" .rstReportMargin pre:
22 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
23 . nr rst2man-indent-level +1
24 .\" .rstReportMargin post:
28 .\" indent \\n[an-margin]
29 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
30 .nr rst2man-indent-level -1
31 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
32 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
36 \fBllvm\-dwarfdump\fP [\fIoptions\fP] [\fIfilename ...\fP]
39 \fBllvm\-dwarfdump\fP parses DWARF sections in object files,
40 archives, and \fI\&.dSYM\fP bundles and prints their contents in
41 human\-readable form. Only the .debug_info section is printed unless one of
42 the section\-specific options or \fI\%\-\-all\fP is specified.
44 If no input file is specified, \fIa.out\fP is used instead. If \fI\-\fP is used as the
45 input file, \fBllvm\-dwarfdump\fP reads the input from its standard input
51 Dump all supported DWARF sections.
56 Dump DWARF debug information for the specified CPU architecture.
57 Architectures may be specified by name or by number. This
58 option can be specified multiple times, once for each desired
59 architecture. All CPU architectures will be printed by
64 .B \-c, \-\-show\-children
65 Show a debug info entry\(aqs children when selectively printing with
66 the \fI=<offset>\fP argument of \fI\%\-\-debug\-info\fP, or options such
67 as \fI\%\-\-find\fP or \fI\%\-\-name\fP\&.
76 .B \-f <name>, \-\-find=<name>
77 Search for the exact text <name> in the accelerator tables
78 and print the matching debug information entries.
79 When there is no accelerator tables or the name of the DIE
80 you are looking for is not found in the accelerator tables,
81 try using the slower but more complete \fI\%\-\-name\fP option.
85 .B \-F, \-\-show\-form
86 Show DWARF form types after the DWARF attribute types.
91 Show help and usage for this command.
96 Show help and usage for this command without grouping the options
101 .B \-i, \-\-ignore\-case
102 Ignore case distinctions when using \fI\%\-\-name\fP\&.
106 .B \-n <name>, \-\-name=<name>
107 Find and print all debug info entries whose name
108 (\fIDW_AT_name\fP attribute) is <name>.
112 .B \-\-lookup=<address>
113 Look up <address> in the debug information and print out the file,
114 function, block, and line table details.
119 Redirect output to a file specified by <path>, where \fI\-\fP is the
120 standard output stream.
124 .B \-p, \-\-show\-parents
125 Show a debug info entry\(aqs parents when selectively printing with
126 the \fI=<offset>\fP argument of \fI\%\-\-debug\-info\fP, or options such
127 as \fI\%\-\-find\fP or \fI\%\-\-name\fP\&.
131 .B \-\-parent\-recurse\-depth=<N>
132 When displaying debug info entry parents, only show them to a
133 maximum depth of <N>.
138 Use with \fI\%\-\-verify\fP to not emit to \fISTDOUT\fP\&.
142 .B \-r <N>, \-\-recurse\-depth=<N>
143 When displaying debug info entries, only show children to a maximum
149 Collect debug info quality metrics and print the results
150 as machine\-readable single\-line JSON output.
154 .B \-\-summarize\-types
155 Abbreviate the description of type unit entries.
160 Treat any <name> strings as regular expressions when searching
161 with \fI\%\-\-name\fP\&. If \fI\%\-\-ignore\-case\fP is also specified,
162 the regular expression becomes case\-insensitive.
167 Show the UUID for each architecture.
172 Dump the output in a format that is more friendly for comparing
173 DWARF output from two different files.
178 Display verbose information when dumping. This can help to debug
184 Verify the structure of the DWARF information by verifying the
185 compile unit chains, DIE relationships graph, address
191 Display the version of the tool.
195 .B \-\-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, \-\-eh\-frame [=<offset>], \-\-gdb\-index, \-\-apple\-names, \-\-apple\-types, \-\-apple\-namespaces, \-\-apple\-objc
196 Dump the specified DWARF section by name. Only the
197 \fI\&.debug_info\fP section is shown by default. Some entries
198 support adding an \fI=<offset>\fP as a way to provide an
199 optional offset of the exact entry to dump within the
200 respective section. When an offset is provided, only the
201 entry at that offset will be dumped, else the entire
202 section will be dumped.
207 Read command\-line options from \fI<FILE>\fP\&.
211 \fBllvm\-dwarfdump\fP returns 0 if the input files were parsed and dumped
212 successfully. Otherwise, it returns 1.
217 Maintained by the LLVM Team (https://llvm.org/).
219 2003-2020, LLVM Project
220 .\" Generated by docutils manpage writer.