[all-commits] [llvm/llvm-project] dedad0: [llvm-symbolizer] Support reading options from env...

Petr Hosek via All-commits all-commits at lists.llvm.org
Fri Dec 20 12:48:09 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dedad08ee8e69129a1f6ac104e34960b50c94d94
      https://github.com/llvm/llvm-project/commit/dedad08ee8e69129a1f6ac104e34960b50c94d94
  Author: Petr Hosek <phosek at google.com>
  Date:   2019-12-20 (Fri, 20 Dec 2019)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-addr2line.rst
    M llvm/docs/CommandGuide/llvm-symbolizer.rst
    A llvm/test/tools/llvm-symbolizer/options-from-env.test
    M llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

  Log Message:
  -----------
  [llvm-symbolizer] Support reading options from environment

llvm-symbolizer is used by sanitizers to symbolize errors discovered by
sanitizer, but there's no way to pass options to llvm-symbolizer since
the tool is invoked directly by the sanitizer runtime. Therefore, we
don't have a way to pass options needed to find debug symbols such as
-dsym-hint or -debug-file-directory. This change enables reading options
from the LLVM_SYMBOLIZER_OPTS in addition to command line which can be
used to pass those additional options to llvm-symbolizer invocations
made by sanitizer runtime.

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




More information about the All-commits mailing list