Index: llvm/test/tools/llvm-dwarfdump/cmdline.test =================================================================== --- llvm/test/tools/llvm-dwarfdump/cmdline.test +++ llvm/test/tools/llvm-dwarfdump/cmdline.test @@ -8,24 +8,67 @@ HELP: --help-list HELP: --version HELP: Section-specific Dump Options -HELP: --debug-info[=] - Dump the .debug_info section +HELP: -a - Alias for -all +HELP: --all - Dump all debug info sections +HELP: --apple-names - Dump the .apple_names section +HELP: --apple-namespaces - Dump the .apple_namespaces section +HELP: --apple-objc - Dump the .apple_objc section +HELP: --apple-types - Dump the .apple_types section +HELP: --debug-abbrev - Dump the .debug_abbrev section +HELP: --debug-addr - Dump the .debug_addr section +HELP: --debug-aranges - Dump the .debug_aranges section +HELP: --debug-cu-index - Dump the .debug_cu_index section +HELP: --debug-frame[=] - Dump the .debug_frame section +HELP: --debug-gnu-pubnames - Dump the .debug_gnu_pubnames section +HELP: --debug-gnu-pubtypes - Dump the .debug_gnu_pubtypes section +HELP: --debug-info[=] - Dump the .debug_info section +HELP: --debug-line[=] - Dump the .debug_line section +HELP: --debug-line-str - Dump the .debug_line_str section +HELP: --debug-loc[=] - Dump the .debug_loc section +HELP: --debug-loclists[=] - Dump the .debug_loclists section +HELP: --debug-macro - Dump the .debug_macro section HELP: --debug-names - Dump the .debug_names section +HELP: --debug-pubnames - Dump the .debug_pubnames section +HELP: --debug-pubtypes - Dump the .debug_pubtypes section +HELP: --debug-ranges - Dump the .debug_ranges section +HELP: --debug-rnglists - Dump the .debug_rnglists section +HELP: --debug-str - Dump the .debug_str section +HELP: --debug-str-offsets - Dump the .debug_str_offsets section +HELP: --debug-tu-index - Dump the .debug_tu_index section +HELP: --debug-types[=] - Dump the .debug_types section HELP: --eh-frame - Alias for -debug-frame +HELP: --gdb-index - Dump the .gdb_index section HELP: Specific Options +HELP: -F +HELP: --arch= +HELP: -c HELP: --diff -HELP: --find +HELP: -f +HELP: --find= +HELP: -i HELP: --ignore-case -HELP: --lookup -HELP: --name +HELP: --lookup=
+HELP: -n +HELP: --name= HELP: -o= +HELP: -p HELP: --parent-recurse-depth= +HELP: --quiet +HELP: -r HELP: --recurse-depth= HELP: --regex HELP: --show-children HELP: --show-form HELP: --show-parents +HELP: --show-section-sizes HELP: --statistics HELP: --summarize-types +HELP: -u +HELP: --uuid +HELP: -v +HELP: --verbose +HELP: --verify +HELP: -x HELP: @FILE RUN: llvm-dwarfdump --version 2>&1 | FileCheck --check-prefix=VERSION %s Index: llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp =================================================================== --- llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -130,7 +130,7 @@ static opt DumpAll("all", desc("Dump all debug info sections"), cat(SectionCategory)); -static alias DumpAllAlias("a", desc("Alias for -all"), aliasopt(DumpAll)); +static alias DumpAllAlias("a", desc("Alias for -all"), aliasopt(DumpAll), cl::NotHidden); // Options for dumping specific sections. static unsigned DumpType = DIDT_Null; @@ -164,19 +164,19 @@ "accelerator tables are available, the slower but more complete " "-name option can be used instead."), value_desc("name"), cat(DwarfDumpCategory)); -static alias FindAlias("f", desc("Alias for -find."), aliasopt(Find)); +static alias FindAlias("f", desc("Alias for -find."), aliasopt(Find), cl::NotHidden); static opt IgnoreCase("ignore-case", desc("Ignore case distinctions when searching."), value_desc("i"), cat(DwarfDumpCategory)); static alias IgnoreCaseAlias("i", desc("Alias for -ignore-case."), - aliasopt(IgnoreCase)); + aliasopt(IgnoreCase), cl::NotHidden); static list Name( "name", desc("Find and print all debug info entries whose name (DW_AT_name " "attribute) matches the exact text in . When used with the " "the -regex option is interpreted as a regular expression."), value_desc("pattern"), cat(DwarfDumpCategory)); -static alias NameAlias("n", desc("Alias for -name"), aliasopt(Name)); +static alias NameAlias("n", desc("Alias for -name"), aliasopt(Name), cl::NotHidden); static opt Lookup("lookup", desc("Lookup
in the debug information and print out any " @@ -193,34 +193,34 @@ desc("Treat any strings as regular expressions when " "searching instead of just as an exact string match."), cat(DwarfDumpCategory)); -static alias RegexAlias("x", desc("Alias for -regex"), aliasopt(UseRegex)); +static alias RegexAlias("x", desc("Alias for -regex"), aliasopt(UseRegex), cl::NotHidden); static opt ShowChildren("show-children", desc("Show a debug info entry's children when selectively " "printing entries."), cat(DwarfDumpCategory)); static alias ShowChildrenAlias("c", desc("Alias for -show-children."), - aliasopt(ShowChildren)); + aliasopt(ShowChildren), cl::NotHidden); static opt ShowParents("show-parents", desc("Show a debug info entry's parents when selectively " "printing entries."), cat(DwarfDumpCategory)); static alias ShowParentsAlias("p", desc("Alias for -show-parents."), - aliasopt(ShowParents)); + aliasopt(ShowParents), cl::NotHidden); static opt ShowForm("show-form", desc("Show DWARF form types after the DWARF attribute types."), cat(DwarfDumpCategory)); static alias ShowFormAlias("F", desc("Alias for -show-form."), - aliasopt(ShowForm), cat(DwarfDumpCategory)); + aliasopt(ShowForm), cat(DwarfDumpCategory), cl::NotHidden); static opt ChildRecurseDepth("recurse-depth", desc("Only recurse to a depth of N when displaying " "children of debug info entries."), cat(DwarfDumpCategory), init(-1U), value_desc("N")); static alias ChildRecurseDepthAlias("r", desc("Alias for -recurse-depth."), - aliasopt(ChildRecurseDepth)); + aliasopt(ChildRecurseDepth), cl::NotHidden); static opt ParentRecurseDepth("parent-recurse-depth", desc("Only recurse to a depth of N when displaying " @@ -245,12 +245,12 @@ cat(DwarfDumpCategory)); static opt DumpUUID("uuid", desc("Show the UUID for each architecture."), cat(DwarfDumpCategory)); -static alias DumpUUIDAlias("u", desc("Alias for -uuid."), aliasopt(DumpUUID)); +static alias DumpUUIDAlias("u", desc("Alias for -uuid."), aliasopt(DumpUUID), cl::NotHidden); static opt Verbose("verbose", desc("Print more low-level encoding details."), cat(DwarfDumpCategory)); static alias VerboseAlias("v", desc("Alias for -verbose."), aliasopt(Verbose), - cat(DwarfDumpCategory)); + cat(DwarfDumpCategory), cl::NotHidden); static cl::extrahelp HelpResponse("\nPass @FILE as argument to read options from FILE.\n"); } // namespace