xref: /llvm-project/llvm/test/tools/llvm-dwarfdump/cmdline.test (revision 52cb972537dac7ac535b57ba9399d53549c027e8)
1d5f38daeSJames HendersonRUN: llvm-dwarfdump -h 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
2d5f38daeSJames HendersonRUN: llvm-dwarfdump --help 2>&1 | FileCheck --check-prefix=HELP %s --implicit-check-not=out-file
3b780d909SAdrian PrantlHELP: USAGE: llvm-dwarfdump{{[^ ]*}} [options] <input object files or .dSYM bundles>
427126f52SJonas DevlieghereHELP: Color Options
52974b3c5SXing GUOHELP: --color
6beb2493fSJames HendersonHELP: Generic Options
72974b3c5SXing GUOHELP: --help
82974b3c5SXing GUOHELP: --help-list
92974b3c5SXing GUOHELP: --version
10b780d909SAdrian PrantlHELP: Section-specific Dump Options
11f0762fc4SgbreynooHELP: -a                         - Alias for --all
12f0762fc4SgbreynooHELP: --all                      - Dump all debug info sections
13f0762fc4SgbreynooHELP: --apple-names              - Dump the .apple_names section
14f0762fc4SgbreynooHELP: --apple-namespaces         - Dump the .apple_namespaces section
15f0762fc4SgbreynooHELP: --apple-objc               - Dump the .apple_objc section
16f0762fc4SgbreynooHELP: --apple-types              - Dump the .apple_types section
17f0762fc4SgbreynooHELP: --debug-abbrev             - Dump the .debug_abbrev section
18f0762fc4SgbreynooHELP: --debug-addr               - Dump the .debug_addr section
19f0762fc4SgbreynooHELP: --debug-aranges            - Dump the .debug_aranges section
20f0762fc4SgbreynooHELP: --debug-cu-index           - Dump the .debug_cu_index section
21f0762fc4SgbreynooHELP: --debug-frame[=<offset>]     - Dump the .debug_frame section
22f0762fc4SgbreynooHELP: --debug-gnu-pubnames       - Dump the .debug_gnu_pubnames section
23f0762fc4SgbreynooHELP: --debug-gnu-pubtypes       - Dump the .debug_gnu_pubtypes section
245b460fb1SJonas DevlieghereHELP: --debug-info[=<offset>]      - Dump the .debug_info section
25f0762fc4SgbreynooHELP: --debug-line[=<offset>]      - Dump the .debug_line section
26f0762fc4SgbreynooHELP: --debug-line-str           - Dump the .debug_line_str section
27f0762fc4SgbreynooHELP: --debug-loc[=<offset>]       - Dump the .debug_loc section
28f0762fc4SgbreynooHELP: --debug-loclists[=<offset>]  - Dump the .debug_loclists section
29f0762fc4SgbreynooHELP: --debug-macro              - Dump the .debug_macro section
305b460fb1SJonas DevlieghereHELP: --debug-names              - Dump the .debug_names section
31f0762fc4SgbreynooHELP: --debug-pubnames           - Dump the .debug_pubnames section
32f0762fc4SgbreynooHELP: --debug-pubtypes           - Dump the .debug_pubtypes section
33f0762fc4SgbreynooHELP: --debug-ranges             - Dump the .debug_ranges section
34f0762fc4SgbreynooHELP: --debug-rnglists           - Dump the .debug_rnglists section
35f0762fc4SgbreynooHELP: --debug-str                - Dump the .debug_str section
36f0762fc4SgbreynooHELP: --debug-str-offsets        - Dump the .debug_str_offsets section
37f0762fc4SgbreynooHELP: --debug-tu-index           - Dump the .debug_tu_index section
38f0762fc4SgbreynooHELP: --debug-types[=<offset>]     - Dump the .debug_types section
39f0762fc4SgbreynooHELP: --eh-frame                 - Alias for --debug-frame
40f0762fc4SgbreynooHELP: --gdb-index                - Dump the .gdb_index section
4131819b3fSAdrian PrantlHELP: Specific Options
42f0762fc4SgbreynooHELP: -F
43f0762fc4SgbreynooHELP: --arch=<string>
44f0762fc4SgbreynooHELP: -c
452974b3c5SXing GUOHELP: --diff
46f0762fc4SgbreynooHELP: -f
47f0762fc4SgbreynooHELP: --find=<name>
48f0762fc4SgbreynooHELP: -i
492974b3c5SXing GUOHELP: --ignore-case
50f0762fc4SgbreynooHELP: --lookup=<address>
51f0762fc4SgbreynooHELP: -n
52f0762fc4SgbreynooHELP: --name=<pattern>
53*52cb9725SFangrui SongHELP: -o <filename>
54f0762fc4SgbreynooHELP: -p
552974b3c5SXing GUOHELP: --parent-recurse-depth=<N>
56f0762fc4SgbreynooHELP: --quiet
57f0762fc4SgbreynooHELP: -r
582974b3c5SXing GUOHELP: --recurse-depth=<N>
592974b3c5SXing GUOHELP: --regex
602974b3c5SXing GUOHELP: --show-children
612974b3c5SXing GUOHELP: --show-form
622974b3c5SXing GUOHELP: --show-parents
63f0762fc4SgbreynooHELP: --show-section-sizes
642974b3c5SXing GUOHELP: --statistics
652974b3c5SXing GUOHELP: --summarize-types
66f0762fc4SgbreynooHELP: -u
67f0762fc4SgbreynooHELP: --uuid
68f0762fc4SgbreynooHELP: -v
69f0762fc4SgbreynooHELP: --verbose
70f0762fc4SgbreynooHELP: --verify
71f0762fc4SgbreynooHELP: -x
729485b265SJames HendersonHELP: @FILE
73b780d909SAdrian Prantl
74b780d909SAdrian PrantlRUN: llvm-dwarfdump --version 2>&1 | FileCheck --check-prefix=VERSION %s
75b780d909SAdrian PrantlVERSION: {{ version }}
763ef53e10SJonas Devlieghere
775b346fd8SDavid BlaikieRUN: not llvm-dwarfdump -diff -verbose 2>&1 | FileCheck --check-prefix=INCOMPATIBLE %s
783ef53e10SJonas DevlieghereINCOMPATIBLE: error: incompatible arguments: specifying both -diff and -verbose is currently not supported
795b460fb1SJonas Devlieghere
805b460fb1SJonas DevlieghereRUN: not llvm-dwarfdump --debug-names=0x0 2>&1 | FileCheck --check-prefix=FLAG %s
81fd9f5f9cSJonas DevlieghereFLAG: for the --debug-names option: this is a flag and does not take a value
82