[llvm-commits] CVS: llvm/tools/llvm-db/llvm-db.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 19 14:42:30 PST 2004
Changes in directory llvm/tools/llvm-db:
llvm-db.cpp updated: 1.1 -> 1.2
---
Log message:
Make sure to print a stack trace whenever an error signal is delivered to the
tool.
---
Diffs of the changes: (+2 -0)
Index: llvm/tools/llvm-db/llvm-db.cpp
diff -u llvm/tools/llvm-db/llvm-db.cpp:1.1 llvm/tools/llvm-db/llvm-db.cpp:1.2
--- llvm/tools/llvm-db/llvm-db.cpp:1.1 Sun Jan 4 23:27:31 2004
+++ llvm/tools/llvm-db/llvm-db.cpp Thu Feb 19 14:32:12 2004
@@ -14,6 +14,7 @@
#include "CLIDebugger.h"
#include "Support/CommandLine.h"
+#include "Support/Signals.h"
#include <iostream>
using namespace llvm;
@@ -51,6 +52,7 @@
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";
More information about the llvm-commits
mailing list