Fix build on less common architectures.

Fixes FTBFS on alpha,armel,ia64,kfreebsd-*,powerpc,sh4.
Origin: Ubuntu, https://launchpad.net/bugs/647091
Bug-Ubuntu: https://launchpad.net/bugs/647091
Bug-Debian: http://bugs.debian.org/620315

Submitted by Alessio Treglia <alessio@debian.org> as
http://git.debian.org/?p=pkg-multimedia/ladish.git;a=blob;f=debian/patches/0001-disable_stacktrace.patch;h=33b6b1b50760f
This commit is contained in:
Nedko Arnaudov 2011-04-22 04:14:51 +03:00
parent 7e53b28c3a
commit 5c1bde8066
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,9 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
log_error("info.si_errno = %d", info->si_errno);
log_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]);
log_error("info.si_addr = %p", info->si_addr);
#if defined(__arm__) || defined(__powerpc__) || defined (__ia64__) || defined (__alpha__) || defined (__FreeBSD_kernel__) || defined (__sh__)
log_error("No stack trace");
#else
for(i = 0; i < NGREG; i++)
log_error("reg[%02d] = 0x" REGFORMAT, i, ucontext->uc_mcontext.gregs[i]);
@ -154,6 +157,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
log_error("%s", strings[i]);
#endif
log_error("End of stack trace");
#endif
exit (-1);
}