From b31384f78dc3420b6dbc6206a63cd1acfa580100 Mon Sep 17 00:00:00 2001
From: Yann Dirson <ydirson@free.fr>
Date: Sat, 19 May 2012 14:05:14 +0200
Subject: [PATCH] Completely disable crash handler on archs other than i386
 and amd64

---
 software/crash_handling/CrashHandling.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/software/crash_handling/CrashHandling.cpp b/software/crash_handling/CrashHandling.cpp
index 1f2520e..4cbf8c3 100755
--- a/software/crash_handling/CrashHandling.cpp
+++ b/software/crash_handling/CrashHandling.cpp
@@ -33,6 +33,8 @@ using namespace std;
  */
 #if defined(__unix__) || defined(__APPLE__)
 
+# if defined(__i386__) || defined(__amd64__)
+
 #include "UnixSignalInterposer.h"
 
 #if defined(__APPLE__)
@@ -100,6 +102,11 @@ void start_crash_handler() {
   installSignalHandler(SIGBUS, &dumpStack);
 }
 
+# else
+// architecture not supported
+void start_crash_handler() {}
+# endif
+
 /*
   MinGW-specific handling
  */
-- 
1.7.10

