forked from OSchip/llvm-project
[llvm-objdump][docs] Add details to the help output and command guide
This change is to add some missing details, clarifies some options and brings the help text and command guide of objdump closer together. - Added to the help that --all-headers also outputs symbols and relocations to match the command guide. - Added to the help that --debug-vars accepts an optional ascii/unicode format to match the command guide. - Changed the help descriptions for --disassemble, --disassemble-all, --dwarf=<value>, --fault-map-section, --line-numbers, --no-leading-addr and --source descriptions to match the command guide. - Added to the help that --start-address and --stop-address also effect relocation entries and the symbol table output to match the command guide. - Added a note to the command guide that --unwind-info and -u are not available for the elf format. Differential Revision: https://reviews.llvm.org/D110633
This commit is contained in:
parent
80e39366ee
commit
3a5aa57c9b
|
@ -27,7 +27,7 @@ combined with other commands:
|
||||||
|
|
||||||
.. option:: -d, --disassemble
|
.. option:: -d, --disassemble
|
||||||
|
|
||||||
Disassemble all text sections found in the input files.
|
Disassemble all executable sections found in the input files.
|
||||||
|
|
||||||
.. option:: -D, --disassemble-all
|
.. option:: -D, --disassemble-all
|
||||||
|
|
||||||
|
@ -93,6 +93,8 @@ combined with other commands:
|
||||||
|
|
||||||
Display the unwind info of the input(s).
|
Display the unwind info of the input(s).
|
||||||
|
|
||||||
|
This operation is only currently supported for COFF and Mach-O object files.
|
||||||
|
|
||||||
.. option:: -v, --version
|
.. option:: -v, --version
|
||||||
|
|
||||||
Display the version of the :program:`llvm-objdump` executable. Does not stack
|
Display the version of the :program:`llvm-objdump` executable. Does not stack
|
||||||
|
|
|
@ -23,7 +23,8 @@ def adjust_vma_EQ : Joined<["--"], "adjust-vma=">,
|
||||||
HelpText<"Increase the displayed address by the specified offset">;
|
HelpText<"Increase the displayed address by the specified offset">;
|
||||||
|
|
||||||
def all_headers : Flag<["--"], "all-headers">,
|
def all_headers : Flag<["--"], "all-headers">,
|
||||||
HelpText<"Display all available header information">;
|
HelpText<"Display all available header information, "
|
||||||
|
"relocation entries and the symbol table">;
|
||||||
def : Flag<["-"], "x">, Alias<all_headers>, HelpText<"Alias for --all-headers">;
|
def : Flag<["-"], "x">, Alias<all_headers>, HelpText<"Alias for --all-headers">;
|
||||||
|
|
||||||
def arch_name_EQ : Joined<["--"], "arch-name=">,
|
def arch_name_EQ : Joined<["--"], "arch-name=">,
|
||||||
|
@ -39,11 +40,11 @@ def demangle : Flag<["--"], "demangle">, HelpText<"Demangle symbol names">;
|
||||||
def : Flag<["-"], "C">, Alias<demangle>, HelpText<"Alias for --demangle">;
|
def : Flag<["-"], "C">, Alias<demangle>, HelpText<"Alias for --demangle">;
|
||||||
|
|
||||||
def disassemble : Flag<["--"], "disassemble">,
|
def disassemble : Flag<["--"], "disassemble">,
|
||||||
HelpText<"Display assembler mnemonics for the machine instructions">;
|
HelpText<"Disassemble all executable sections found in the input files">;
|
||||||
def : Flag<["-"], "d">, Alias<disassemble>, HelpText<"Alias for --disassemble">;
|
def : Flag<["-"], "d">, Alias<disassemble>, HelpText<"Alias for --disassemble">;
|
||||||
|
|
||||||
def disassemble_all : Flag<["--"], "disassemble-all">,
|
def disassemble_all : Flag<["--"], "disassemble-all">,
|
||||||
HelpText<"Display assembler mnemonics for the machine instructions">;
|
HelpText<"Disassemble all sections found in the input files">;
|
||||||
def : Flag<["-"], "D">, Alias<disassemble_all>,
|
def : Flag<["-"], "D">, Alias<disassemble_all>,
|
||||||
HelpText<"Alias for --disassemble-all">;
|
HelpText<"Alias for --disassemble-all">;
|
||||||
|
|
||||||
|
@ -73,10 +74,12 @@ def : Flag<["-"], "R">, Alias<dynamic_reloc>,
|
||||||
HelpText<"Alias for --dynamic-reloc">;
|
HelpText<"Alias for --dynamic-reloc">;
|
||||||
|
|
||||||
def dwarf_EQ : Joined<["--"], "dwarf=">,
|
def dwarf_EQ : Joined<["--"], "dwarf=">,
|
||||||
HelpText<"Dump of dwarf debug sections">, Values<"frames">;
|
HelpText<"Dump the specified DWARF debug sections. The "
|
||||||
|
"only supported value is 'frames'">,
|
||||||
|
Values<"frames">;
|
||||||
|
|
||||||
def fault_map_section : Flag<["--"], "fault-map-section">,
|
def fault_map_section : Flag<["--"], "fault-map-section">,
|
||||||
HelpText<"Display contents of faultmap section">;
|
HelpText<"Display the content of the fault map section">;
|
||||||
|
|
||||||
def file_headers : Flag<["--"], "file-headers">,
|
def file_headers : Flag<["--"], "file-headers">,
|
||||||
HelpText<"Display the contents of the overall file header">;
|
HelpText<"Display the contents of the overall file header">;
|
||||||
|
@ -89,9 +92,10 @@ def : Flag<["-"], "s">, Alias<full_contents>,
|
||||||
HelpText<"Alias for --full-contents">;
|
HelpText<"Alias for --full-contents">;
|
||||||
|
|
||||||
def line_numbers : Flag<["--"], "line-numbers">,
|
def line_numbers : Flag<["--"], "line-numbers">,
|
||||||
HelpText<"Display source line numbers with "
|
HelpText<"When disassembling, display source line numbers. "
|
||||||
"disassembly. Implies disassemble object">;
|
"Implies --disassemble">;
|
||||||
def : Flag<["-"], "l">, Alias<line_numbers>,
|
def : Flag<["-"], "l">,
|
||||||
|
Alias<line_numbers>,
|
||||||
HelpText<"Alias for --line-numbers">;
|
HelpText<"Alias for --line-numbers">;
|
||||||
|
|
||||||
def macho : Flag<["--"], "macho">,
|
def macho : Flag<["--"], "macho">,
|
||||||
|
@ -111,7 +115,7 @@ def no_show_raw_insn : Flag<["--"], "no-show-raw-insn">,
|
||||||
"do not print the instruction bytes.">;
|
"do not print the instruction bytes.">;
|
||||||
|
|
||||||
def no_leading_addr : Flag<["--"], "no-leading-addr">,
|
def no_leading_addr : Flag<["--"], "no-leading-addr">,
|
||||||
HelpText<"Print no leading address">;
|
HelpText<"When disassembling, do not print leading addresses">;
|
||||||
|
|
||||||
def raw_clang_ast : Flag<["--"], "raw-clang-ast">,
|
def raw_clang_ast : Flag<["--"], "raw-clang-ast">,
|
||||||
HelpText<"Dump the raw binary contents of the clang AST section">;
|
HelpText<"Dump the raw binary contents of the clang AST section">;
|
||||||
|
@ -150,15 +154,18 @@ def show_lma : Flag<["--"], "show-lma">,
|
||||||
HelpText<"Display LMA column when dumping ELF section headers">;
|
HelpText<"Display LMA column when dumping ELF section headers">;
|
||||||
|
|
||||||
def source : Flag<["--"], "source">,
|
def source : Flag<["--"], "source">,
|
||||||
HelpText<"Display source inlined with disassembly. Implies disassemble object">;
|
HelpText<"When disassembling, display source interleaved with the "
|
||||||
|
"disassembly. Implies --disassemble">;
|
||||||
def : Flag<["-"], "S">, Alias<source>, HelpText<"Alias for --source">;
|
def : Flag<["-"], "S">, Alias<source>, HelpText<"Alias for --source">;
|
||||||
|
|
||||||
def start_address_EQ : Joined<["--"], "start-address=">,
|
def start_address_EQ : Joined<["--"], "start-address=">,
|
||||||
MetaVarName<"address">,
|
MetaVarName<"address">,
|
||||||
HelpText<"Disassemble beginning at address">;
|
HelpText<"Set the start address for disassembling, "
|
||||||
|
"printing relocations and printing symbols">;
|
||||||
def stop_address_EQ : Joined<["--"], "stop-address=">,
|
def stop_address_EQ : Joined<["--"], "stop-address=">,
|
||||||
MetaVarName<"address">,
|
MetaVarName<"address">,
|
||||||
HelpText<"Stop disassembly at address">;
|
HelpText<"Set the stop address for disassembling, "
|
||||||
|
"printing relocations and printing symbols">;
|
||||||
|
|
||||||
def syms : Flag<["--"], "syms">,
|
def syms : Flag<["--"], "syms">,
|
||||||
HelpText<"Display the symbol table">;
|
HelpText<"Display the symbol table">;
|
||||||
|
@ -195,11 +202,11 @@ defm prefix_strip
|
||||||
MetaVarName<"prefix">;
|
MetaVarName<"prefix">;
|
||||||
|
|
||||||
def debug_vars_EQ : Joined<["--"], "debug-vars=">,
|
def debug_vars_EQ : Joined<["--"], "debug-vars=">,
|
||||||
Values<"unicode,ascii">;
|
|
||||||
def : Flag<["--"], "debug-vars">,
|
|
||||||
HelpText<"Print the locations (in registers or memory) of "
|
HelpText<"Print the locations (in registers or memory) of "
|
||||||
"source-level variables alongside disassembly">,
|
"source-level variables alongside disassembly. "
|
||||||
Alias<debug_vars_EQ>, AliasArgs<["unicode"]>;
|
"Supported formats: ascii, unicode (default)">,
|
||||||
|
Values<"unicode,ascii">;
|
||||||
|
def : Flag<["--"], "debug-vars">, Alias<debug_vars_EQ>, AliasArgs<["unicode"]>;
|
||||||
|
|
||||||
def debug_vars_indent_EQ : Joined<["--"], "debug-vars-indent=">,
|
def debug_vars_indent_EQ : Joined<["--"], "debug-vars-indent=">,
|
||||||
HelpText<"Distance to indent the source-level variable display, "
|
HelpText<"Distance to indent the source-level variable display, "
|
||||||
|
|
Loading…
Reference in New Issue