223 lines · plain
1RUN: llvm-debuginfo-analyzer --version 2>&1 | FileCheck --check-prefix=VERSION %s2VERSION: {{ version }}3 4RUN: llvm-debuginfo-analyzer -h > %t 2>&15RUN: FileCheck -input-file=%t %s --check-prefix=HELP --implicit-check-not=out-file6RUN: llvm-debuginfo-analyzer --help > %t 2>&17RUN: FileCheck -input-file=%t %s --check-prefix=HELP --implicit-check-not=out-file8HELP: OVERVIEW: Printing a logical representation of low-level debug information.9HELP: USAGE: llvm-debuginfo-analyzer{{[^ ]*}} [options] <input object files or .dSYM bundles>10HELP: OPTIONS:11HELP: Generic Options:12HELP: --help - Display available options (--help-hidden for more)13HELP: --help-list - Display list of available options (--help-list-hidden for more)14HELP: --version - Display the version of this program15HELP: Print Options:16HELP: These control which elements are printed.17HELP: --print=<value> - Element to print.18HELP: =all - All elements.19HELP: =elements - Instructions, lines, scopes, symbols and types.20HELP: =instructions - Assembler instructions.21HELP: =lines - Lines referenced in the debug information.22HELP: =scopes - A lexical block (Function, Class, etc.).23HELP: =sizes - Scope contributions to the debug information.24HELP: =summary - Summary of elements missing/added/matched/printed.25HELP: =symbols - Symbols (Variable, Members, etc.).26HELP: =types - Types (Pointer, Reference, etc.).27HELP: =warnings - Warnings detected.28HELP: Pass @FILE as argument to read options from FILE.29 30RUN: llvm-debuginfo-analyzer --help-hidden > %t 2>&131RUN: FileCheck -input-file=%t %s --check-prefix=HELP-ALL --implicit-check-not=out-file32HELP-ALL: OVERVIEW: Printing a logical representation of low-level debug information.33HELP-ALL: USAGE: llvm-debuginfo-analyzer{{[^ ]*}} [options] <input object files or .dSYM bundles>34HELP-ALL: OPTIONS:35HELP-ALL: Attribute Options:36HELP-ALL: These control extra attributes that are added when the element is printed.37HELP-ALL: --attribute=<value> - Element attributes.38HELP-ALL: =all - Include all attributes.39HELP-ALL: =argument - Template parameters replaced by its arguments.40HELP-ALL: =base - Base types (int, bool, etc.).41HELP-ALL: =coverage - Symbol location coverage.42HELP-ALL: =directories - Directories referenced in the debug information.43HELP-ALL: =discarded - Discarded elements by the linker.44HELP-ALL: =discriminator - Discriminators for inlined function instances.45HELP-ALL: =encoded - Template arguments encoded in the template name.46HELP-ALL: =extended - Advanced attributes alias.47HELP-ALL: =filename - Filename where the element is defined.48HELP-ALL: =files - Files referenced in the debug information.49HELP-ALL: =format - Object file format name.50HELP-ALL: =gaps - Missing debug location (gaps).51HELP-ALL: =generated - Compiler generated elements.52HELP-ALL: =global - Element referenced across Compile Units.53HELP-ALL: =inserted - Generated inlined abstract references.54HELP-ALL: =language - Source language name.55HELP-ALL: =level - Lexical scope level (File=0, Compile Unit=1).56HELP-ALL: =linkage - Linkage name.57HELP-ALL: =local - Element referenced only in the Compile Unit.58HELP-ALL: =location - Element debug location.59HELP-ALL: =offset - Debug information offset.60HELP-ALL: =pathname - Pathname where the element is defined.61HELP-ALL: =producer - Toolchain identification name.62HELP-ALL: =publics - Function names that are public.63HELP-ALL: =qualified - The element type include parents in its name.64HELP-ALL: =qualifier - Line qualifiers (Newstatement, BasicBlock, etc.).65HELP-ALL: =range - Debug location ranges.66HELP-ALL: =reference - Element declaration and definition references.67HELP-ALL: =register - Processor register names.68HELP-ALL: =size - Type sizes.69HELP-ALL: =standard - Basic attributes alias.70HELP-ALL: =subrange - Subrange encoding information for arrays.71HELP-ALL: =system - Display PDB's MS system elements.72HELP-ALL: =typename - Include Parameters in templates.73HELP-ALL: =underlying - Underlying type for type definitions.74HELP-ALL: =zero - Zero line numbers.75HELP-ALL: Compare Options:76HELP-ALL: These control the view comparison.77HELP-ALL: --compare=<value> - Elements to compare.78HELP-ALL: =all - Compare all elements.79HELP-ALL: =lines - Lines.80HELP-ALL: =scopes - Scopes.81HELP-ALL: =symbols - Symbols.82HELP-ALL: =types - Types.83HELP-ALL: --compare-context - Add the view as compare context.84HELP-ALL: Generic Options:85HELP-ALL: -h - Alias for --help86HELP-ALL: --help - Display available options (--help-hidden for more)87HELP-ALL: --help-hidden - Display all available options88HELP-ALL: --help-list - Display list of available options (--help-list-hidden for more)89HELP-ALL: --help-list-hidden - Display list of all available options90HELP-ALL: --print-all-options - Print all option values after command line parsing91HELP-ALL: --print-options - Print non-default options after command line parsing92HELP-ALL: --version - Display the version of this program93HELP-ALL: Internal Options:94HELP-ALL: Internal traces and extra debugging code.95HELP-ALL: --internal=<value> - Traces to enable.96HELP-ALL: =all - Enable all traces.97HELP-ALL: =cmdline - Print command line.98HELP-ALL: =id - Print unique element ID99HELP-ALL: =integrity - Check elements integrity.100HELP-ALL: =none - Ignore element line number.101HELP-ALL: =tag - Debug information tags.102HELP-ALL: Output Options:103HELP-ALL: These control the output generated.104HELP-ALL: --output=<value> - Outputs for view.105HELP-ALL: =all - All outputs.106HELP-ALL: =split - Split the output by Compile Units.107HELP-ALL: =text - Use a free form text output.108HELP-ALL: =json - Use JSON as the output format.109HELP-ALL: --output-file=<filename> - Redirect output to the specified file.110HELP-ALL: --output-folder=<pathname> - Folder name for view splitting.111HELP-ALL: --output-level=<N> - Only print to a depth of N elements.112HELP-ALL: --output-sort=<value> - Primary key when ordering logical view (default: line).113HELP-ALL: =none - Unsorted output (i.e. as read from input).114HELP-ALL: =id - Sort by unique element ID.115HELP-ALL: =kind - Sort by element kind.116HELP-ALL: =line - Sort by element line number.117HELP-ALL: =name - Sort by element name.118HELP-ALL: =offset - Sort by element offset.119HELP-ALL: Print Options:120HELP-ALL: These control which elements are printed.121HELP-ALL: --print=<value> - Element to print.122HELP-ALL: =all - All elements.123HELP-ALL: =elements - Instructions, lines, scopes, symbols and types.124HELP-ALL: =instructions - Assembler instructions.125HELP-ALL: =lines - Lines referenced in the debug information.126HELP-ALL: =scopes - A lexical block (Function, Class, etc.).127HELP-ALL: =sizes - Scope contributions to the debug information.128HELP-ALL: =summary - Summary of elements missing/added/matched/printed.129HELP-ALL: =symbols - Symbols (Variable, Members, etc.).130HELP-ALL: =types - Types (Pointer, Reference, etc.).131HELP-ALL: =warnings - Warnings detected.132HELP-ALL: Report Options:133HELP-ALL: These control how the elements are printed.134HELP-ALL: --report=<value> - Reports layout used for print, compare and select.135HELP-ALL: =all - Generate all reports.136HELP-ALL: =children - Selected elements are displayed in a tree view (Include children)137HELP-ALL: =list - Selected elements are displayed in a tabular format.138HELP-ALL: =parents - Selected elements are displayed in a tree view. (Include parents)139HELP-ALL: =view - Selected elements are displayed in a tree view (Include parents and children.140HELP-ALL: Select Options:141HELP-ALL: These control which elements are selected.142HELP-ALL: --select=<pattern> - Search elements matching the given pattern.143HELP-ALL: --select-elements=<value> - Conditions to use when printing elements.144HELP-ALL: =Discarded - Discarded elements by the linker.145HELP-ALL: =Global - Element referenced across Compile Units.146HELP-ALL: =Optimized - Generated inlined abstract references.147HELP-ALL: --select-lines=<value> - Line kind to use when printing lines.148HELP-ALL: =AlwaysStepInto - Always Step Into.149HELP-ALL: =BasicBlock - Basic block.150HELP-ALL: =Discriminator - Discriminator.151HELP-ALL: =EndSequence - End sequence.152HELP-ALL: =EpilogueBegin. - Epilogue begin.153HELP-ALL: =LineDebug - Debug line.154HELP-ALL: =LineAssembler - Assembler line.155HELP-ALL: =NeverStepInto - Never Step Into.156HELP-ALL: =NewStatement - New statement.157HELP-ALL: =PrologueEnd - Prologue end.158HELP-ALL: --select-nocase - Ignore case distinctions when searching.159HELP-ALL: --select-offsets=<offset> - Offset element to print.160HELP-ALL: --select-regex - Treat any <pattern> strings as regular expressions when selecting instead of just as an exact string match.161HELP-ALL: --select-scopes=<value> - Scope kind to use when printing scopes.162HELP-ALL: =Aggregate - Class, Structure or Union.163HELP-ALL: =Array - Array.164HELP-ALL: =Block - Lexical block.165HELP-ALL: =CallSite - Call site block.166HELP-ALL: =CatchBlock - Exception catch block.167HELP-ALL: =Class - Class.168HELP-ALL: =CompileUnit - Compile unit.169HELP-ALL: =EntryPoint - Function entry point.170HELP-ALL: =Enumeration - Enumeration.171HELP-ALL: =Function - Function.172HELP-ALL: =FunctionType - Function type.173HELP-ALL: =InlinedFunction - Inlined function.174HELP-ALL: =Label - Label.175HELP-ALL: =LexicalBlock - Lexical block.176HELP-ALL: =Module - Module.177HELP-ALL: =Namespace - Namespace.178HELP-ALL: =Root - Root.179HELP-ALL: =Structure - Structure.180HELP-ALL: =Subprogram - Subprogram.181HELP-ALL: =Template - Template.182HELP-ALL: =TemplateAlias - Template alias.183HELP-ALL: =TemplatePack - Template pack.184HELP-ALL: =TryBlock - Exception try block.185HELP-ALL: =Union - Union.186HELP-ALL: --select-symbols=<value> - Symbol kind to use when printing symbols.187HELP-ALL: =CallSiteParameter - Call site parameter.188HELP-ALL: =Constant - Constant.189HELP-ALL: =Inheritance - Inheritance.190HELP-ALL: =Member - Member.191HELP-ALL: =Parameter - Parameter.192HELP-ALL: =Unspecified - Unspecified parameter.193HELP-ALL: =Variable - Variable.194HELP-ALL: --select-types=<value> - Type kind to use when printing types.195HELP-ALL: =Base - Base Type (int, bool, etc.).196HELP-ALL: =Const - Constant specifier.197HELP-ALL: =Enumerator - Enumerator.198HELP-ALL: =Import - Import.199HELP-ALL: =ImportDeclaration - Import declaration.200HELP-ALL: =ImportModule - Import module.201HELP-ALL: =Pointer - Pointer.202HELP-ALL: =PointerMember - Pointer to member.203HELP-ALL: =Reference - Reference type.204HELP-ALL: =Restrict - Restrict specifier.205HELP-ALL: =RvalueReference - Rvalue reference.206HELP-ALL: =Subrange - Array subrange.207HELP-ALL: =TemplateParam - Template Parameter.208HELP-ALL: =TemplateTemplateParam - Template template parameter.209HELP-ALL: =TemplateTypeParam - Template type parameter.210HELP-ALL: =TemplateValueParam - Template value parameter.211HELP-ALL: =Typedef - Type definition.212HELP-ALL: =Unspecified - Unspecified type.213HELP-ALL: =Volatile - Volatile specifier.214HELP-ALL: Warning Options:215HELP-ALL: These control the generated warnings.216HELP-ALL: --warning=<value> - Warnings to generate.217HELP-ALL: =all - All warnings.218HELP-ALL: =coverages - Invalid symbol coverages values.219HELP-ALL: =lines - Debug lines that are zero.220HELP-ALL: =locations - Invalid symbol locations.221HELP-ALL: =ranges - Invalid code ranges.222HELP-ALL: Pass @FILE as argument to read options from FILE.223