[PATCH] D20403: Search for llvm-symbolizer binary in same directory as argv[0]
Richard Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 16:57:00 PDT 2016
rsmith created this revision.
rsmith added reviewers: samsonov, rnk.
rsmith added a subscriber: llvm-commits.
rsmith set the repository for this revision to rL LLVM.
Herald added a subscriber: joker.eph.
Currently we search for the llvm-symbolizer binary along `$PATH`. This doesn't work very well if the LLVM binary is run from the build area, or is installed in some directory that's not on the `$PATH`. This patch changes the crash reporter to look for the symbolizer binary in directory of `argv[0]` before it searches `$PATH`; most of the changes here are wiring `argv[0]` from each of our `main` functions through to the crash reporter.
Repository:
rL LLVM
http://reviews.llvm.org/D20403
Files:
include/llvm/Support/Signals.h
lib/Support/Signals.cpp
lib/Support/Unix/Signals.inc
lib/Support/Windows/Signals.inc
tools/bugpoint/bugpoint.cpp
tools/clang/tools/arcmt-test/arcmt-test.cpp
tools/clang/tools/c-index-test/c-index-test.c
tools/clang/tools/c-index-test/core_main.cpp
tools/clang/tools/clang-check/ClangCheck.cpp
tools/clang/tools/clang-format/ClangFormat.cpp
tools/clang/tools/driver/cc1_main.cpp
tools/clang/tools/driver/cc1as_main.cpp
tools/clang/tools/driver/driver.cpp
tools/clang/tools/extra/clang-query/tool/ClangQuery.cpp
tools/clang/tools/extra/tool-template/ToolTemplate.cpp
tools/clang/tools/libclang/CIndex.cpp
tools/clang/utils/TableGen/TableGen.cpp
tools/dsymutil/dsymutil.cpp
tools/llc/llc.cpp
tools/lld/tools/lld/lld.cpp
tools/lli/lli.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
tools/llvm-cov/CodeCoverage.cpp
tools/llvm-cov/TestingSupport.cpp
tools/llvm-cov/gcov.cpp
tools/llvm-cov/llvm-cov.cpp
tools/llvm-cxxdump/llvm-cxxdump.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-jitlistener/llvm-jitlistener.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-lto/llvm-lto.cpp
tools/llvm-mc/llvm-mc.cpp
tools/llvm-mcmarkup/llvm-mcmarkup.cpp
tools/llvm-nm/llvm-nm.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-pdbdump/llvm-pdbdump.cpp
tools/llvm-profdata/llvm-profdata.cpp
tools/llvm-readobj/llvm-readobj.cpp
tools/llvm-rtdyld/llvm-rtdyld.cpp
tools/llvm-size/llvm-size.cpp
tools/llvm-symbolizer/llvm-symbolizer.cpp
tools/obj2yaml/obj2yaml.cpp
tools/opt/opt.cpp
tools/sancov/sancov.cc
tools/verify-uselistorder/verify-uselistorder.cpp
tools/yaml2obj/yaml2obj.cpp
utils/FileCheck/FileCheck.cpp
utils/KillTheDoctor/KillTheDoctor.cpp
utils/TableGen/TableGen.cpp
utils/unittest/UnitTestMain/TestMain.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20403.57712.patch
Type: text/x-patch
Size: 32400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160518/b0a4ba60/attachment.bin>
More information about the llvm-commits
mailing list