xref: /llvm-project/llvm/test/tools/llvm-dwarfdump/cmdline.test (revision 52cb972537dac7ac535b57ba9399d53549c027e8)
1RUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
2RUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
3HELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options] <input object files or .dSYM bundles>
4HELP: Color Options
5HELP: --color
6HELP: Generic Options
7HELP: --help
8HELP: --help-list
9HELP: --version
10HELP: Section-specific Dump Options
11HELP: -a                         - Alias for --all
12HELP: --all                      - Dump all debug info sections
13HELP: --apple-names              - Dump the .apple_names section
14HELP: --apple-namespaces         - Dump the .apple_namespaces section
15HELP: --apple-objc               - Dump the .apple_objc section
16HELP: --apple-types              - Dump the .apple_types section
17HELP: --debug-abbrev             - Dump the .debug_abbrev section
18HELP: --debug-addr               - Dump the .debug_addr section
19HELP: --debug-aranges            - Dump the .debug_aranges section
20HELP: --debug-cu-index           - Dump the .debug_cu_index section
21HELP: --debug-frame[=<offset>]     - Dump the .debug_frame section
22HELP: --debug-gnu-pubnames       - Dump the .debug_gnu_pubnames section
23HELP: --debug-gnu-pubtypes       - Dump the .debug_gnu_pubtypes section
24HELP: --debug-info[=<offset>]      - Dump the .debug_info section
25HELP: --debug-line[=<offset>]      - Dump the .debug_line section
26HELP: --debug-line-str           - Dump the .debug_line_str section
27HELP: --debug-loc[=<offset>]       - Dump the .debug_loc section
28HELP: --debug-loclists[=<offset>]  - Dump the .debug_loclists section
29HELP: --debug-macro              - Dump the .debug_macro section
30HELP: --debug-names              - Dump the .debug_names section
31HELP: --debug-pubnames           - Dump the .debug_pubnames section
32HELP: --debug-pubtypes           - Dump the .debug_pubtypes section
33HELP: --debug-ranges             - Dump the .debug_ranges section
34HELP: --debug-rnglists           - Dump the .debug_rnglists section
35HELP: --debug-str                - Dump the .debug_str section
36HELP: --debug-str-offsets        - Dump the .debug_str_offsets section
37HELP: --debug-tu-index           - Dump the .debug_tu_index section
38HELP: --debug-types[=<offset>]     - Dump the .debug_types section
39HELP: --eh-frame                 - Alias for --debug-frame
40HELP: --gdb-index                - Dump the .gdb_index section
41HELP: Specific Options
42HELP: -F
43HELP: --arch=<string>
44HELP: -c
45HELP: --diff
46HELP: -f
47HELP: --find=<name>
48HELP: -i
49HELP: --ignore-case
50HELP: --lookup=<address>
51HELP: -n
52HELP: --name=<pattern>
53HELP: -o <filename>
54HELP: -p
55HELP: --parent-recurse-depth=<N>
56HELP: --quiet
57HELP: -r
58HELP: --recurse-depth=<N>
59HELP: --regex
60HELP: --show-children
61HELP: --show-form
62HELP: --show-parents
63HELP: --show-section-sizes
64HELP: --statistics
65HELP: --summarize-types
66HELP: -u
67HELP: --uuid
68HELP: -v
69HELP: --verbose
70HELP: --verify
71HELP: -x
72HELP: @FILE
73
74RUN: llvm-dwarfdump --version 2>&1 | FileCheck --check-prefix=VERSION %s
75VERSION: {{ version }}
76
77RUN: not llvm-dwarfdump -diff -verbose 2>&1 | FileCheck --check-prefix=INCOMPATIBLE %s
78INCOMPATIBLE: error: incompatible arguments: specifying both -diff and -verbose is currently not supported
79
80RUN: not llvm-dwarfdump --debug-names=0x0 2>&1 | FileCheck --check-prefix=FLAG %s
81FLAG: for the --debug-names option: this is a flag and does not take a value
82