[all-commits] [llvm/llvm-project] 3a5dde: [llvm-objdump] Display locations of variables alon...

ostannard via All-commits all-commits at lists.llvm.org
Mon Mar 16 03:55:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a5ddedadb671e485ce5c638142817879ac14a8c
      https://github.com/llvm/llvm-project/commit/3a5ddedadb671e485ce5c638142817879ac14a8c
  Author: Oliver Stannard <oliver.stannard at linaro.org>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    M llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
    M llvm/include/llvm/Support/FormattedStream.h
    M llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
    M llvm/lib/Support/FormattedStream.cpp
    A llvm/test/tools/llvm-objdump/ARM/Inputs/debug.c
    A llvm/test/tools/llvm-objdump/ARM/Inputs/wide-char.c
    A llvm/test/tools/llvm-objdump/ARM/debug-vars-dwarf4-sections.s
    A llvm/test/tools/llvm-objdump/ARM/debug-vars-dwarf4.s
    A llvm/test/tools/llvm-objdump/ARM/debug-vars-dwarf5-sections.s
    A llvm/test/tools/llvm-objdump/ARM/debug-vars-dwarf5.s
    A llvm/test/tools/llvm-objdump/ARM/debug-vars-wide-chars.s
    A llvm/test/tools/llvm-objdump/PowerPC/debug-vars.s
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump] Display locations of variables alongside disassembly

This adds the --debug-vars option to llvm-objdump, which prints
locations (registers/memory) of source-level variables alongside the
disassembly based on DWARF info. A vertical line is printed for each
live-range, with a label at the top giving the variable name and
location, and the position and length of the line indicating the program
counter range in which it is valid.

Currently, this only works for object files, not executables or shared
libraries.

Differential revision: https://reviews.llvm.org/D70720


  Commit: f62b898c1f5dd77e68b53570dc2679877bcbe4c2
      https://github.com/llvm/llvm-project/commit/f62b898c1f5dd77e68b53570dc2679877bcbe4c2
  Author: Oliver Stannard <oliver.stannard at linaro.org>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M llvm/unittests/DebugInfo/DWARF/CMakeLists.txt
    A llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp

  Log Message:
  -----------
  [DebugInfo] Add unit test for compact expression printer

Add a unit test for the compact DWARF expression printer which will be
used by the llvm-objdump --debug-vars option.

Differential revision: https://reviews.llvm.org/D75250


  Commit: c0cf5f5da9a7bf1bdf43ed53287b0f634fc53045
      https://github.com/llvm/llvm-project/commit/c0cf5f5da9a7bf1bdf43ed53287b0f634fc53045
  Author: Oliver Stannard <oliver.stannard at linaro.org>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp

  Log Message:
  -----------
  [llvm-objdump] Add simple memory expressions to variable display

Add the DW_OP_breg0..DW_OP_breg31 and DW_OP_bregx opcodes to the DWARF
expression printer.

Differential revision: https://reviews.llvm.org/D74841


  Commit: 18649f48139932377c2a2909f1fb600bf5cf6e57
      https://github.com/llvm/llvm-project/commit/18649f48139932377c2a2909f1fb600bf5cf6e57
  Author: Oliver Stannard <oliver.stannard at linaro.org>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
    M llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp

  Log Message:
  -----------
  [llvm-objdump] Add entry_value and stack_value opcodes

Add the DW_OP_entry_value and DW_OP_stack_value opcodes to the DWARF
expression printer.

Differential revision: https://reviews.llvm.org/D74843


Compare: https://github.com/llvm/llvm-project/compare/8b409eabaf75...18649f481399


More information about the All-commits mailing list