[clang-tools-extra] r325574 - [clangd] Dump stack on crash
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 20 03:46:39 PST 2018
Author: sammccall
Date: Tue Feb 20 03:46:39 2018
New Revision: 325574
URL: http://llvm.org/viewvc/llvm-project?rev=325574&view=rev
Log:
[clangd] Dump stack on crash
Modified:
clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=325574&r1=325573&r2=325574&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Tue Feb 20 03:46:39 2018
@@ -135,6 +135,7 @@ static llvm::cl::opt<Path> YamlSymbolFil
llvm::cl::init(""), llvm::cl::Hidden);
int main(int argc, char *argv[]) {
+ llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);
llvm::cl::ParseCommandLineOptions(argc, argv, "clangd");
if (Test) {
RunSynchronously = true;
More information about the cfe-commits
mailing list