1 RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
2 RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
3 HELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options] <input object files or .dSYM bundles>
10 HELP: Section-specific Dump Options
11 HELP: -a - Alias for --all
12 HELP: --all - Dump all debug info sections
13 HELP: --apple-names - Dump the .apple_names section
14 HELP: --apple-namespaces - Dump the .apple_namespaces section
15 HELP: --apple-objc - Dump the .apple_objc section
16 HELP: --apple-types - Dump the .apple_types section
17 HELP: --debug-abbrev - Dump the .debug_abbrev section
18 HELP: --debug-addr - Dump the .debug_addr section
19 HELP: --debug-aranges - Dump the .debug_aranges section
20 HELP: --debug-cu-index - Dump the .debug_cu_index section
21 HELP: --debug-frame[=<offset>] - Dump the .debug_frame section
22 HELP: --debug-gnu-pubnames - Dump the .debug_gnu_pubnames section
23 HELP: --debug-gnu-pubtypes - Dump the .debug_gnu_pubtypes section
24 HELP: --debug-info[=<offset>] - Dump the .debug_info section
25 HELP: --debug-line[=<offset>] - Dump the .debug_line section
26 HELP: --debug-line-str - Dump the .debug_line_str section
27 HELP: --debug-loc[=<offset>] - Dump the .debug_loc section
28 HELP: --debug-loclists[=<offset>] - Dump the .debug_loclists section
29 HELP: --debug-macro - Dump the .debug_macro section
30 HELP: --debug-names - Dump the .debug_names section
31 HELP: --debug-pubnames - Dump the .debug_pubnames section
32 HELP: --debug-pubtypes - Dump the .debug_pubtypes section
33 HELP: --debug-ranges - Dump the .debug_ranges section
34 HELP: --debug-rnglists - Dump the .debug_rnglists section
35 HELP: --debug-str - Dump the .debug_str section
36 HELP: --debug-str-offsets - Dump the .debug_str_offsets section
37 HELP: --debug-tu-index - Dump the .debug_tu_index section
38 HELP: --debug-types[=<offset>] - Dump the .debug_types section
39 HELP: --eh-frame - Alias for --debug-frame
40 HELP: --gdb-index - Dump the .gdb_index section
41 HELP: Specific Options
50 HELP: --lookup=<address>
52 HELP: --name=<pattern>
55 HELP: --parent-recurse-depth=<N>
58 HELP: --recurse-depth=<N>
63 HELP: --show-section-sizes
65 HELP: --summarize-types
74 RUN: llvm-dwarfdump --version 2>&1 | FileCheck --check-prefix=VERSION %s
75 VERSION: {{ version }}
77 RUN: not llvm-dwarfdump -diff -verbose 2>&1 | FileCheck --check-prefix=INCOMPATIBLE %s
78 INCOMPATIBLE: error: incompatible arguments: specifying both -diff and -verbose is currently not supported
80 RUN: not llvm-dwarfdump --debug-names=0x0 2>&1 | FileCheck --check-prefix=FLAG %s
81 FLAG: for the --debug-names option: this is a flag and does not take a value