David Blaikie
5146fc15fc
llvm-dwarfdump: Include unit count in DWP index header dumping
...
And add comma separators (to be consistent with recent
changes/improvements to the dumping of other section headers) while I'm
here.
2020-06-12 12:40:02 -07:00
Adrian Prantl
3ae35eb56b
llvm-dwarfdump: automatically dump both regular and .dwo variant of sections
...
Since users typically don't really care about the .dwo / non.dwo
distinction, this patch makes it so dwarfdump --debug-<info,...> dumps
.debug_info and (if available) also .debug_info.dwo. This simplifies
the command line interface (I've removed all dwo-specific dump
options) and makes the tool friendlier to use.
Differential Revision: https://reviews.llvm.org/D37771
llvm-svn: 313207
2017-09-13 22:09:01 +00:00
Adrian Prantl
16aa4cf7ef
llvm-dwarfdump: Make -brief the default and add a -verbose option instead.
...
Differential Revision: https://reviews.llvm.org/D37717
llvm-svn: 312972
2017-09-11 23:05:20 +00:00
David Blaikie
725c4f71d1
dwarfdump: Correctly indentify the indicies for DWP records
...
The indicies are one-based, not zero-based, per the spec.
llvm-svn: 254626
2015-12-03 18:41:59 +00:00
David Blaikie
35c2eebfe4
dwarfdump: support indexed string dumping in dwp based on the STR_OFFSETS component of the index
...
llvm-svn: 253392
2015-11-17 22:39:23 +00:00
David Blaikie
c4e2bed738
dwarfdump: Reference the appropriate line table segment when dumping dwp files
...
Also improves .dwo type unit dumping which didn't handle this either.
llvm-svn: 253377
2015-11-17 21:08:05 +00:00
David Blaikie
82641be467
dwarfdump: Use the index to find the right abbrev offset in DWP files
...
llvm-svn: 253277
2015-11-17 00:39:55 +00:00
David Blaikie
8e8dd57e0b
dwarfdump: Add support for dumping the table contents of DWP indexes
...
This is a recommit of 252842 which was reverted in 252859. The issue was
using %s format specifier for a StringRef - used Format's
left_justify(StringRef, int) instead.
It'd be nice to have __attribute__((format(..))) on llvm::format, but
apparently it's only implemented for c-style variadics, not C++ variadic
templates. Perhaps we could fix that & conditionalize the attribute on
such...
llvm-svn: 253065
2015-11-13 19:18:49 +00:00
David Blaikie
6400fc146e
Mostly revert 252842 due to failures on some buildbots.
...
I imagine there's some UB in here somewhere, though Valgrind doesn't
seem to have picked it up (not sure if I have a working asan build right
now to test there).
GDB bot seems to be crashing:
http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75/builds/26267/steps/check-all/logs/FAIL%3A%20LLVM%3A%3Adwarfdump-dwp.test
Hexagon ELF bot is, presumably, just getting different output:
http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/32927/steps/check-all/logs/FAIL%3A%20LLVM%3A%3Adwarfdump-dwp.test
llvm-svn: 252859
2015-11-12 06:33:14 +00:00
David Blaikie
5b9bf49c6f
dwarfdump: Dump the contents of DWP indexes
...
llvm-svn: 252842
2015-11-12 01:41:52 +00:00
David Blaikie
51c402838c
dwarfdump: DWP type unit index dumping skeleton
...
llvm-svn: 252786
2015-11-11 19:40:49 +00:00
David Blaikie
65a8efe441
dwarfdump: First piece of support for DWP dumping
...
Just a tiny piece of index dumping - the header in this instance.
llvm-svn: 252781
2015-11-11 19:28:21 +00:00