mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
Make sure to print a stack trace whenever an error signal is delivered to the
tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user