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

ostannard via All-commits all-commits at lists.llvm.org
Thu Jul 9 01:58:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dc4a6f5db4f0178bae43ef615cc8902c759d6195
      https://github.com/llvm/llvm-project/commit/dc4a6f5db4f0178bae43ef615cc8902c759d6195
  Author: Oliver Stannard <oliver.stannard at linaro.org>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    M llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
    M llvm/lib/DebugInfo/DWARF/DWARFExpression.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.

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




More information about the All-commits mailing list