summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-dwarfdump/cmdline.test
Commit message (Collapse)AuthorAgeFilesLines
* [binutils] Add response file option to help and docsJames Henderson2019-06-211-0/+1
| | | | | | | | | | | | | | | | | | | | | Many LLVM-based tools already support response files (i.e. files containing a list of options, specified with '@'). This change simply updates the documentation and help text for some of these tools to include it. I haven't attempted to fix all tools, just a selection that I am interested in. I've taken the opportunity to add some tests for --help behaviour, where they were missing. We could expand these tests, but I don't think that's within scope of this patch. This fixes https://bugs.llvm.org/show_bug.cgi?id=42233 and https://bugs.llvm.org/show_bug.cgi?id=42236. Reviewed by: grimar, MaskRay, jkorous Differential Revision: https://reviews.llvm.org/D63597 llvm-svn: 364036
* [llvm-dwarfdump] Remove unnecessary explicit -h behaviourJames Henderson2019-06-211-0/+4
| | | | | | | | | | | | | | | | | --help and -h are automatically supported by the command-line parser, unless overridden by the tool. The behaviour of the PrintHelpMessage being used for -h prior to this patch is subtly different to that provided by --help automatically (it omits certain elements of help text and options, such as --help-list), so overriding the default is not desirable, without good reason. This patch removes the explicit specification of -h and its behaviour, so that the default behaviour is used. Reviewed by: hintonda Differential Revision: https://reviews.llvm.org/D63565 llvm-svn: 364029
* [test][llvm-dwarfdump] Remove pointless CHECK-NOT linesJames Henderson2019-06-191-2/+0
| | | | | | | | The original line was there from when this test was added, but it is checking for a switch that doesn't exist, so really has no purpose, at least any more. llvm-svn: 363833
* [llvm-dwarfdump] Add -o to help text and remove --out-file from docJames Henderson2019-06-111-2/+3
| | | | | | | | | | | | | -o is in the documentation, but not in the llvm-dwarfdump help text. This patch adds it by inverting the -o and --out-file aliasing. It also removes --out-file from the documentation, since we don't really want people to be using this switch in practice. Reviewed by: aprantl, JDevlieghere, dblaikie Differential Revision: https://reviews.llvm.org/D63013 llvm-svn: 363044
* [dwarfdump] Add flag to limit the number of parents DIEsJonas Devlieghere2019-05-241-0/+1
| | | | | | | | | This adds `-parent-recurse-depth` which limits the number of parent DIEs being dumped. Differential revision: https://reviews.llvm.org/D62359 llvm-svn: 361671
* [dwarfdump] Make incompatibility between -diff and -verbose explicit.Jonas Devlieghere2018-10-231-0/+3
| | | | | | | | Using -diff and -verbose together doesn't work today. We should audit where these two options interact and fix them. In the meantime we error out when the user try to specify both. llvm-svn: 345084
* [Support] Add color cl category.Jonas Devlieghere2018-05-241-0/+2
| | | | | | | | | This commit adds a color category so tools can document this option and enables it for dwarfdump and dsymuttil. rdar://problem/40498996 llvm-svn: 333176
* dwarfdump: Add support for the --diff option.Adrian Prantl2017-12-081-0/+1
| | | | | | | | | --diff Emit the output in a diff-friendly way by omitting offsets and addresses. <rdar://problem/34502625> llvm-svn: 320214
* Re-land "[dwarfdump] Add -lookup option"Jonas Devlieghere2017-10-251-0/+1
| | | | | | | | | Add the option to lookup an address in the debug information and print out the file, function, block and line table details. Differential revision: https://reviews.llvm.org/D38409 llvm-svn: 316619
* llvm-dwarfdump: Add an option to collect debug info quality metrics.Adrian Prantl2017-10-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the last LLVM dev meeting we had a debug info for optimized code BoF session. In that session I presented some graphs that showed how the quality of the debug info produced by LLVM changed over the last couple of years. This is a cleaned up version of the patch I used to collect the this data. It is implemented as an extension of llvm-dwarfdump, adding a new --statistics option. The intended use-case is to automatically run this on the debug info produced by, e.g., our bots, to identify eyebrow-raising changes or regressions introduced by new transformations that we could act on. In the current form, two kinds of data are being collected: - The number of variables that have a debug location versus the number of variables in total (this takes into account inlined instances of the same function, so if a variable is completely missing form only one instance it will be found). - The PC range covered by variable location descriptions versus the PC range of all variables' containing lexical scopes. The output format is versioned and extensible, so I'm looking forward to both bug fixes and ideas for other data that would be interesting to track. Differential Revision: https://reviews.llvm.org/D36627 llvm-svn: 315101
* llvm-dwarfdump: implement the --regex option in combination with --name.Adrian Prantl2017-10-031-0/+1
| | | | llvm-svn: 314855
* Revert r314817 "[dwarfdump] Add -lookup option"Hans Wennborg2017-10-031-1/+0
| | | | | | | | | | | | | | | | | The test fails on Linux; see follow-up email on the llvm-commits list. > Add the option to lookup an address in the debug information and print > out the file, function, block and line table details. > > Differential revision: https://reviews.llvm.org/D38409 This also reverts the follow-up r314818: > [test] Fix llvm-dwarfdump/cmdline.test > > Fixes test/tools/llvm-dwarfdump/cmdline.test llvm-svn: 314825
* [test] Fix llvm-dwarfdump/cmdline.testJonas Devlieghere2017-10-031-1/+1
| | | | | | Fixes test/tools/llvm-dwarfdump/cmdline.test llvm-svn: 314818
* [dwarfdump] Add -lookup optionJonas Devlieghere2017-10-031-0/+1
| | | | | | | | | Add the option to lookup an address in the debug information and print out the file, function, block and line table details. Differential revision: https://reviews.llvm.org/D38409 llvm-svn: 314817
* llvm-dwarfdump: support the --ignore-case option.Adrian Prantl2017-10-021-0/+1
| | | | llvm-svn: 314723
* [dwarfdump] Add -show-formJonas Devlieghere2017-10-021-1/+2
| | | | | | | | | This enables printing of DWARF form types after the DWARF attribute types. Differential revision: https://reviews.llvm.org/D38459 llvm-svn: 314685
* llvm-dwarfdump: implement the --name lookup option.Adrian Prantl2017-09-301-0/+1
| | | | llvm-svn: 314576
* llvm-dwarfdump: implement --find for .apple_namesAdrian Prantl2017-09-281-0/+1
| | | | | | | | | | | | This patch implements the dwarfdump option --find=<name>. This option looks for a DIE in the accelerator tables and dumps it if found. This initial patch only adds support for .apple_names to keep the review small, adding the other sections and pubnames support should be trivial though. Differential Revision: https://reviews.llvm.org/D38282 llvm-svn: 314439
* llvm-dwarfdump: move -eh-frame into the right section in the help output.Adrian Prantl2017-09-201-0/+1
| | | | llvm-svn: 313836
* llvm-dwarfdump: implement --recurse-depth=<N>Adrian Prantl2017-09-201-0/+1
| | | | | | | | | | This patch implements the Darwin dwarfdump option --recurse-depth=<N>, which limits the recursion depth when selectively printing DIEs at an offset. Differential Revision: https://reviews.llvm.org/D38064 llvm-svn: 313778
* llvm-dwarfdump: un-hide more command line optionsAdrian Prantl2017-09-191-0/+5
| | | | llvm-svn: 313673
* Move test into non-target-specific directory.Adrian Prantl2017-09-191-0/+9
llvm-svn: 313672
OpenPOWER on IntegriCloud