diff options
author | Oliver Stannard <oliver.stannard@linaro.org> | 2020-03-17 14:21:42 +0000 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@linaro.org> | 2020-07-09 09:58:00 +0100 |
commit | dc4a6f5db4f0178bae43ef615cc8902c759d6195 (patch) | |
tree | 234634076b11b65bd52f62b9df1c4e6f35571fb5 /llvm/docs/CommandGuide/llvm-objdump.rst | |
parent | 1c7c5019a7adfb16e0449ffb1d0e10631998d854 (diff) | |
download | llvm-dc4a6f5db4f0178bae43ef615cc8902c759d6195.zip llvm-dc4a6f5db4f0178bae43ef615cc8902c759d6195.tar.gz llvm-dc4a6f5db4f0178bae43ef615cc8902c759d6195.tar.bz2 |
[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
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objdump.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst index 2de48d6..df4cf74 100644 --- a/llvm/docs/CommandGuide/llvm-objdump.rst +++ b/llvm/docs/CommandGuide/llvm-objdump.rst @@ -123,6 +123,17 @@ OPTIONS Demangle symbol names in the output. +.. option:: --debug-vars=<format> + + Print the locations (in registers or memory) of source-level variables + alongside disassembly. ``format`` may be ``unicode`` or ``ascii``, defaulting + to ``unicode`` if omitted. + +.. option:: --debug-vars-indent=<width> + + Distance to indent the source-level variable display, relative to the start + of the disassembly. Defaults to 40 characters. + .. option:: -j, --section=<section1[,section2,...]> Perform commands on the specified sections only. For Mach-O use |