[all-commits] [llvm/llvm-project] 694f38: [Debuginfod] Flag-determine debuginfod lookups in ...

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Wed Feb 9 14:21:08 PST 2022


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

  Changed paths:
    M llvm/docs/CommandGuide/llvm-symbolizer.rst
    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:
  -----------
  [Debuginfod] Flag-determine debuginfod lookups in llvm-symbolizer.

This change adds a pair of flags controlling whether llvm-symbolizer
attempts debuginfod lookups. Lookups are attempted if --debuginfod is
passed and disabled if --no-debuginfod is passed.

The default behavior is made more nuanced: debuginfod lookups are now
only attempted if an HTTP client is compiled in and at least one backing
debuginfod URL was configured via environment variable. Previously,
debuginfod lookups would always be attempted, even if there were no
chance that they could succeed.

Reviewed By: phosek

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




More information about the All-commits mailing list