summaryrefslogtreecommitdiff
path: root/tools/llvm-cxxdump
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-06-09 00:53:21 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-06-09 00:53:21 +0000
commit0eeb3d4004cad7a499c795b43cc72a427f4127bc (patch)
tree8e6665757bffbfc01894ddbb8eaf868ad364b6d0 /tools/llvm-cxxdump
parent14f9bce989c3723bc3693fce76f72b9b23551406 (diff)
Search for llvm-symbolizer binary in the same directory as argv[0], before
looking for it along $PATH. This allows installs of LLVM tools outside of $PATH to find the symbolizer and produce pretty backtraces if they crash. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-cxxdump')
-rw-r--r--tools/llvm-cxxdump/llvm-cxxdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-cxxdump/llvm-cxxdump.cpp b/tools/llvm-cxxdump/llvm-cxxdump.cpp
index d4a290c786b..16ea629260d 100644
--- a/tools/llvm-cxxdump/llvm-cxxdump.cpp
+++ b/tools/llvm-cxxdump/llvm-cxxdump.cpp
@@ -525,7 +525,7 @@ static void dumpInput(StringRef File) {
}
int main(int argc, const char *argv[]) {
- sys::PrintStackTraceOnErrorSignal();
+ sys::PrintStackTraceOnErrorSignal(argv[0]);
PrettyStackTraceProgram X(argc, argv);
llvm_shutdown_obj Y;