From d033ece0c985d3f89c261d030ff2ff1d9c58bbc6 Mon Sep 17 00:00:00 2001 From: Daniel Thornburgh Date: Tue, 23 Aug 2022 13:44:30 -0700 Subject: [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 --- llvm/docs/CommandGuide/llvm-objdump.rst | 13 +++++++++++++ llvm/docs/CommandGuide/llvm-symbolizer.rst | 6 ++++++ 2 files changed, 19 insertions(+) (limited to 'llvm/docs/CommandGuide') 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 + + 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= 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 + + 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, -- cgit v1.1