#
ccc21c45 |
| 19-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: un-hide more command line options
llvm-svn: 313673
|
#
b8f08428 |
| 18-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
Replace for_each with a range-based for. NFC.
llvm-svn: 313578
|
#
c2bc7170 |
| 18-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: add a --show-parents options when selectively dumping DIEs.
llvm-svn: 313567
|
#
c0a758d8 |
| 18-Sep-2017 |
Jonas Devlieghere <jonas@devlieghere.com> |
[dwarfdump] Make .eh_frame an alias for .debug_frame
This patch makes the `.eh_frame` extension an alias for `.debug_frame`. Up till now it was only possible to dump the section using objdump, but n
[dwarfdump] Make .eh_frame an alias for .debug_frame
This patch makes the `.eh_frame` extension an alias for `.debug_frame`. Up till now it was only possible to dump the section using objdump, but not with dwarfdump. Since the two are essentially interchangeable, we dump whichever of the two is present.
As a workaround, this patch also adds parsing for 3 currently unimplemented CFA instructions: `DW_CFA_def_cfa_expression`, `DW_CFA_expression`, and `DW_CFA_val_expression`. Because I lack the required knowledge, I just parse the fields without actually creating the instructions.
Finally, this also fixes the typo in the `.debug_frame` section name which incorrectly contained a trailing `s`.
Differential revision: https://reviews.llvm.org/D37852
llvm-svn: 313530
show more ...
|
#
597aa48d |
| 16-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: support a --show-children option
This will print all children of a DIE when selectively printing only one DIE at a given offset.
llvm-svn: 313464
|
#
057d336c |
| 15-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: Add support for -debug-info=<offset>.
This is the first of many commits that enable selectively dumping just one record from the debug info.
This reapplies r313412 with some extra q
llvm-dwarfdump: Add support for -debug-info=<offset>.
This is the first of many commits that enable selectively dumping just one record from the debug info.
This reapplies r313412 with some extra qualification to appease GCC and MSVC.
llvm-svn: 313419
show more ...
|
#
b5abcc55 |
| 15-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
Revert "llvm-dwarfdump: Add support for -debug-info=<offset>."
This reverts commit r313412 because of a g++ incompatibility.
llvm-svn: 313413
|
#
fb5d284e |
| 15-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: Add support for -debug-info=<offset>.
This is the first of many commits that enable selectively dumping just one record from the debug info.
llvm-svn: 313412
|
#
5fd3d49b |
| 14-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: support dumping static archives.
llvm-svn: 313272
|
#
d866b479 |
| 13-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
Use MemoryBufferRef. (NFC)
llvm-svn: 313212
|
#
2611ffe2 |
| 13-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
Factor out duplicate code from llvm-dwarfdump (NFC)
llvm-svn: 313211
|
#
3ae35eb5 |
| 13-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
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-<i
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
show more ...
|
#
3dcd1221 |
| 13-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: support dumping UUIDs of Mach-O binaries.
This is a feature supported by Darwin dwarfdump. UUIDs are used to associate executables with their .dSYM bundles.
llvm-svn: 313165
|
#
27476ce2 |
| 13-Sep-2017 |
Jonas Devlieghere <jonas@devlieghere.com> |
[dwarfdump] Rename Brief to Verbose in DIDumpOptions
This patches renames "brief" to "verbose" in de DIDumpOptions and inverts the logic to match the new behavior where brief is the default. Changin
[dwarfdump] Rename Brief to Verbose in DIDumpOptions
This patches renames "brief" to "verbose" in de DIDumpOptions and inverts the logic to match the new behavior where brief is the default. Changing the default value uncovered some bugs related to the DIDumpOptions not being propagated and have been fixed as well.
Differential revision: https://reviews.llvm.org/D37745
llvm-svn: 313139
show more ...
|
#
7c5b45d3 |
| 12-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
Clean up the --help output of llvm-dwarfdump by hiding irrelevant options.
llvm-svn: 313085
|
#
16aa4cf7 |
| 11-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: Make -brief the default and add a -verbose option instead.
Differential Revision: https://reviews.llvm.org/D37717
llvm-svn: 312972
|
#
7bc1b282 |
| 11-Sep-2017 |
Adrian Prantl <aprantl@apple.com> |
llvm-dwarfdump: Replace -debug-dump=sect option with individual options.
As discussed on llvm-dev in http://lists.llvm.org/pipermail/llvm-dev/2017-September/117301.html this changes the command line
llvm-dwarfdump: Replace -debug-dump=sect option with individual options.
As discussed on llvm-dev in http://lists.llvm.org/pipermail/llvm-dev/2017-September/117301.html this changes the command line interface of llvm-dwarfdump to match the one used by the dwarfdump utility shipping on macOS. In addition to being shorter to type this format also has the advantage of allowing more than one section to be specified at the same time.
In a nutshell, with this change
$ llvm-dwarfdump --debug-dump=info $ llvm-dwarfdump --debug-dump=apple-objc
becomes
$ dwarfdump --debug-info --apple-objc
Differential Revision: https://reviews.llvm.org/D37714
llvm-svn: 312970
show more ...
|
Revision tags: llvmorg-5.0.0, llvmorg-5.0.0-rc5 |
|
#
8ac8df03 |
| 31-Aug-2017 |
Jonas Devlieghere <jonas@devlieghere.com> |
[llvm-dwarfdump] Brief mode only dumps debug_info by default
This patch changes the default behavior in brief mode to only show the debug_info section. This is undoubtedly the most popular and likel
[llvm-dwarfdump] Brief mode only dumps debug_info by default
This patch changes the default behavior in brief mode to only show the debug_info section. This is undoubtedly the most popular and likely the one you'd want in brief mode.
Non-brief mode behavior is not affected and still defaults to all.
Differential revision: https://reviews.llvm.org/D37334
llvm-svn: 312252
show more ...
|
#
a058736c |
| 29-Aug-2017 |
Reid Kleckner <rnk@google.com> |
[dwarfdump] Pretty print location expressions and location lists
Summary: Based on Fred's patch here: https://reviews.llvm.org/D6771
I can't seem to commandeer the old review, so I'm creating a new
[dwarfdump] Pretty print location expressions and location lists
Summary: Based on Fred's patch here: https://reviews.llvm.org/D6771
I can't seem to commandeer the old review, so I'm creating a new one.
With that change the locations exrpessions are pretty printed inline in the DIE tree. The output looks like this for debug_loc entries:
DW_AT_location [DW_FORM_data4] (0x00000000 0x0000000000000001 - 0x000000000000000b: DW_OP_consts +3 0x000000000000000b - 0x0000000000000012: DW_OP_consts +7 0x0000000000000012 - 0x000000000000001b: DW_OP_reg0 RAX, DW_OP_piece 0x4 0x000000000000001b - 0x0000000000000024: DW_OP_breg5 RDI+0)
And like this for debug_loc.dwo entries: DW_AT_location [DW_FORM_sec_offset] (0x00000000 Addr idx 2 (w/ length 190): DW_OP_consts +0, DW_OP_stack_value Addr idx 3 (w/ length 23): DW_OP_reg0 RAX, DW_OP_piece 0x4)
Simple locations without ranges are printed inline:
DW_AT_location [DW_FORM_block1] (DW_OP_reg4 RSI, DW_OP_piece 0x4, DW_OP_bit_piece 0x20 0x0)
The debug_loc(.dwo) dumping in changed accordingly to factor the code.
Reviewers: dblaikie, aprantl, friss
Subscribers: mgorny, javed.absar, hiraditya, llvm-commits, JDevlieghere
Differential Revision: https://reviews.llvm.org/D37123
llvm-svn: 312042
show more ...
|
Revision tags: llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2, llvmorg-5.0.0-rc1 |
|
#
c398e67f |
| 19-Jul-2017 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use delegation instead of inheritance.
This changes DwarfContext to delegate to DwarfObject instead of having pure virtual methods.
With this DwarfContextInMemory is replaced with an implementation
Use delegation instead of inheritance.
This changes DwarfContext to delegate to DwarfObject instead of having pure virtual methods.
With this DwarfContextInMemory is replaced with an implementation of DwarfObject that is local to a .cpp file.
llvm-svn: 308543
show more ...
|
Revision tags: llvmorg-4.0.1, llvmorg-4.0.1-rc3 |
|
#
cc0d13ad |
| 12-Jun-2017 |
Spyridoula Gravani <sgravani@apple.com> |
[DWARF] Added a blank line in llvm-dwarfdump to test commit access.
llvm-svn: 305220
|
#
318d1195 |
| 06-Jun-2017 |
Adrian Prantl <aprantl@apple.com> |
Introduce -brief command line option to llvm-dwarfdump
This patch introduces a new command line option, called brief, to llvm-dwarfdump. When -brief is used, the attribute forms for the .debug_info
Introduce -brief command line option to llvm-dwarfdump
This patch introduces a new command line option, called brief, to llvm-dwarfdump. When -brief is used, the attribute forms for the .debug_info section will not be emitted to output.
Patch by Spyridoula Gravani!
rdar://problem/21474365 Differential Revision: https://reviews.llvm.org/D33867
llvm-svn: 304844
show more ...
|
#
77d3e938 |
| 06-Jun-2017 |
Wolfgang Pieb <Wolfgang.Pieb@sony.com> |
[DWARF] Adding support for the DWARF v5 string offsets table (consumer/reader part only).
Reviewers: dblaikie, aprantl
Differential Revision: https://reviews.llvm.org/D32779
llvm-svn: 304759
|
#
f4bc1f77 |
| 01-Jun-2017 |
Adrian Prantl <aprantl@apple.com> |
[DWARF] Introduce Dump Options
This commit introduces a structure that holds all the flags that control the pretty printing of dwarf output.
Patch by Spyridoula Gravani!
Differential Revision: htt
[DWARF] Introduce Dump Options
This commit introduces a structure that holds all the flags that control the pretty printing of dwarf output.
Patch by Spyridoula Gravani!
Differential Revision: https://reviews.llvm.org/D33749
llvm-svn: 304446
show more ...
|
Revision tags: llvmorg-4.0.1-rc2 |
|
#
48432cfb |
| 01-May-2017 |
Greg Clayton <gclayton@apple.com> |
Adds initial llvm-dwarfdump --verify support with unit tests.
lldb-dwarfdump gets a new "--verify" option that will verify a single file's DWARF debug info and will print out any errors that it find
Adds initial llvm-dwarfdump --verify support with unit tests.
lldb-dwarfdump gets a new "--verify" option that will verify a single file's DWARF debug info and will print out any errors that it finds. It will return an non-zero exit status if verification fails, and a zero exit status if verification succeeds. Adding the --quiet option will suppress any output the STDOUT or STDERR.
The first part of the verify does the following:
- verifies that all CU relative references (DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_ref8, DW_FORM_ref_udata) have valid CU offsets - verifies that all DW_FORM_ref_addr references have valid .debug_info offsets - verifies that all DW_AT_ranges attributes have valid .debug_ranges offsets - verifies that all DW_AT_stmt_list attributes have valid .debug_line offsets - verifies that all DW_FORM_strp attributes have valid .debug_str offsets
Unit tests were added for each of the above cases.
Differential Revision: https://reviews.llvm.org/D32707
llvm-svn: 301844
show more ...
|