[all-commits] [llvm/llvm-project] dcd495: [Symbolizer] Add Build ID flag to llvm-symbolizer.

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Feb 8 15:08:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcd4950d425664f9d280a6c538711956a9dff89b
      https://github.com/llvm/llvm-project/commit/dcd4950d425664f9d280a6c538711956a9dff89b
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-symbolizer.rst
    M llvm/include/llvm/DebugInfo/Symbolize/Symbolize.h
    M llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
    A llvm/test/tools/llvm-symbolizer/debuginfod-bad-build-id.test
    A llvm/test/tools/llvm-symbolizer/debuginfod-build-id-and-obj.test
    A llvm/test/tools/llvm-symbolizer/debuginfod-missing-build-id.test
    M llvm/test/tools/llvm-symbolizer/debuginfod.test
    M llvm/tools/llvm-symbolizer/Opts.td
    M llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

  Log Message:
  -----------
  [Symbolizer] Add Build ID flag to llvm-symbolizer.

This adds a --build-id=<hex build ID> flag to llvm-symbolizer. If --obj
is unspecified, this will attempt to look up the provided build ID using
whatever mechanisms are available to the Symbolizer (typically,
debuginfod). The semantics are then as if the found binary were given
using the --obj flag.

Reviewed By: jhenderson, phosek

Differential Revision: https://reviews.llvm.org/D118633




More information about the All-commits mailing list