mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Disable the stack trace thing until we can get an autoconf test for it. This
call breaks on sparcs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <execinfo.h>
|
//#include <execinfo.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "Config/config.h" // Get the signal handler return type
|
#include "Config/config.h" // Get the signal handler return type
|
||||||
@@ -55,8 +55,8 @@ static RETSIGTYPE SignalHandler(int Sig) {
|
|||||||
|
|
||||||
// Otherwise if it is a fault (like SEGV) output the stacktrace to
|
// Otherwise if it is a fault (like SEGV) output the stacktrace to
|
||||||
// STDERR and reissue the signal to die...
|
// STDERR and reissue the signal to die...
|
||||||
int depth = backtrace(StackTrace, sizeof(StackTrace)/sizeof(StackTrace[0]));
|
//int depth = backtrace(StackTrace, sizeof(StackTrace)/sizeof(StackTrace[0]));
|
||||||
backtrace_symbols_fd(StackTrace, depth, STDERR_FILENO);
|
//backtrace_symbols_fd(StackTrace, depth, STDERR_FILENO);
|
||||||
signal(Sig, SIG_DFL);
|
signal(Sig, SIG_DFL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user