aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorDaniel Thornburgh <dthorn@google.com>2022-08-23 13:44:30 -0700
committerDaniel Thornburgh <dthorn@google.com>2022-10-03 16:17:45 -0700
commitd033ece0c985d3f89c261d030ff2ff1d9c58bbc6 (patch)
tree8cfe4425bf8e78727e60157990ca8f89644e26a6 /llvm/docs/CommandGuide
parent8c45e80298f4e3eb6d9cfbafcb099bc087e4668e (diff)
downloadllvm-d033ece0c985d3f89c261d030ff2ff1d9c58bbc6.zip
llvm-d033ece0c985d3f89c261d030ff2ff1d9c58bbc6.tar.gz
llvm-d033ece0c985d3f89c261d030ff2ff1d9c58bbc6.tar.bz2
[llvm-objdump] Find debug information with Build ID/debuginfod.
Uses the library introduced in https://reviews.llvm.org/D132504 to add build ID fetching to llvm-objdump. This allows viewing source when disassembling stripped objects. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D131224
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-objdump.rst13
-rw-r--r--llvm/docs/CommandGuide/llvm-symbolizer.rst6
2 files changed, 19 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst
index 9f3fba4..07aad86 100644
--- a/llvm/docs/CommandGuide/llvm-objdump.rst
+++ b/llvm/docs/CommandGuide/llvm-objdump.rst
@@ -129,6 +129,19 @@ OPTIONS
Demangle symbol names in the output.
+.. option:: --debug-file-directory <path>
+
+ Provide a path to a directory with a `.build-id` subdirectory to search for
+ debug information for stripped binaries. Multiple instances of this argument
+ are searched in the order given.
+
+.. option:: --debuginfod, --no-debuginfod
+
+ Whether or not to try debuginfod lookups for debug binaries. Unless specified,
+ debuginfod is only enabled if libcurl was compiled in (``LLVM_ENABLE_CURL``)
+ and at least one server URL was provided by the environment variable
+ ``DEBUGINFOD_URLS``.
+
.. option:: --debug-vars=<format>
Print the locations (in registers or memory) of source-level variables
diff --git a/llvm/docs/CommandGuide/llvm-symbolizer.rst b/llvm/docs/CommandGuide/llvm-symbolizer.rst
index abb174c..fa4f2a0 100644
--- a/llvm/docs/CommandGuide/llvm-symbolizer.rst
+++ b/llvm/docs/CommandGuide/llvm-symbolizer.rst
@@ -221,6 +221,12 @@ OPTIONS
``auto``, which detects whether standard output supports color. Specifying
``--color`` alone is equivalent to ``--color=always``.
+.. option:: --debug-file-directory <path>
+
+ Provide a path to a directory with a `.build-id` subdirectory to search for
+ debug information for stripped binaries. Multiple instances of this argument
+ are searched in the order given.
+
.. option:: --debuginfod, --no-debuginfod
Whether or not to try debuginfod lookups for debug binaries. Unless specified,