Make sure to print a stack trace whenever an error signal is delivered to the

tool.

llvm-svn: 11632
This commit is contained in:
Chris Lattner
2004-02-19 20:32:12 +00:00
parent b0bedfa4b2
commit 12439ffbac
8 changed files with 15 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
#include "CLIDebugger.h"
#include "Support/CommandLine.h"
#include "Support/Signals.h"
#include <iostream>
using namespace llvm;
@@ -51,6 +52,7 @@ namespace {
int main(int argc, char **argv, char * const *envp) {
cl::ParseCommandLineOptions(argc, argv,
" llvm source-level debugger\n");
PrintStackTraceOnErrorSignal();
if (Version || !Quiet) {
std::cout << "llvm-db: The LLVM source-level debugger\n";