llvm-project/llvm/test/tools
Reid Kleckner a058736c9c [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
2017-08-29 21:41:21 +00:00
..
dsymutil [dwarfdump] Pretty print location expressions and location lists 2017-08-29 21:41:21 +00:00
gold [gold] Fix up a new test to allow it to pass on non x86 builds. 2017-08-25 16:14:56 +00:00
llvm-ar Fix binary static archive that got mangled by patch 2017-03-31 21:16:22 +00:00
llvm-config [llvm-config] Fix cflags test looking for "warning" 2017-05-30 20:21:47 +00:00
llvm-cov [llvm-cov] Add an option which maps the location of source directories on another machine to your local copies 2017-08-14 10:20:12 +00:00
llvm-cvtres Fix bug in symbol generation for resource COFF 2017-06-30 18:16:35 +00:00
llvm-cxxdump Fix a bug in the code of llvm-cxxdump in dumpArchive() when 2016-10-21 20:03:14 +00:00
llvm-cxxfilt c++filt: support COFF import thunks 2017-03-22 21:15:19 +00:00
llvm-dwarfdump/X86 Revert "[llvm-dwarfdump] Print type names in DW_AT_type DIEs" 2017-08-22 21:59:46 +00:00
llvm-dwp [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
llvm-extract [llvm-extract] Add option for recursive extraction 2017-04-06 20:51:40 +00:00
llvm-lit
llvm-lto Object: Remove ModuleSummaryIndexObjectFile class. 2017-05-01 20:42:32 +00:00
llvm-lto2 Fix the bug that parseAAPipeline is not invoked in runNewPMPasses in release compiler. 2017-08-02 03:03:19 +00:00
llvm-mc
llvm-modextract llvm-modextract: Call keep() on the output stream before exiting. 2016-12-01 23:13:11 +00:00
llvm-mt llvm-mt: Merge manifest namespaces. 2017-08-19 00:37:41 +00:00
llvm-nm llvm-nm: Add support for symbol demangling (-C/--demangle) 2017-06-29 18:29:05 +00:00
llvm-objcopy Reland "[llvm] Add symbol table support to llvm-objcopy" 2017-08-29 02:12:03 +00:00
llvm-objdump [MachO] Use Twines more efficiently. 2017-08-20 15:13:39 +00:00
llvm-opt-report [llvm-opt-report] Fix context-sensitive lines where nothing happened 2017-01-07 20:21:17 +00:00
llvm-pdbdump [PDB] Add a test that verifies every known type record. 2017-07-05 18:43:25 +00:00
llvm-profdata Fix the bug when SampleProfileWriter writes out number of callsites. 2017-08-03 00:09:18 +00:00
llvm-rc [llvm-rc] Add DIALOG(EX) parsing ability (parser, pt 5/8). 2017-08-29 16:49:59 +00:00
llvm-readobj [Object] Initialize LoadConfig member to null 2017-08-07 21:23:38 +00:00
llvm-size Fix a bug with llvm-size and the -m option with multiple files not printing the file names. 2016-12-01 19:12:55 +00:00
llvm-split
llvm-strings [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
llvm-symbolizer Get rid of even more "%T" expansions, see <https://reviews.llvm.org/D35396>. 2017-08-20 17:05:22 +00:00
llvm-xray/X86 [XRay][tools] Support new kinds of instrumentation map entries 2017-08-21 00:14:06 +00:00
lto Fix test/tools/lto/hide-linkonce-odr.ll after r289719 2016-12-15 01:31:38 +00:00
obj2yaml obj2yaml: Improve error reporting 2017-06-16 23:29:54 +00:00
sancov [sancov] better input parameters validation 2017-03-03 18:22:20 +00:00
sanstats [sanstats] Remove a flaky test. 2017-07-13 01:36:12 +00:00
yaml2obj [yaml2obj][ELF] Add support for program headers 2017-07-19 20:38:46 +00:00