* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
-#if defined(HAVE_EXECINFO) && !defined(Q_OS_MAC)
-# define BUILD_CRASHHANDLER
-# include <execinfo.h>
-# include <dlfcn.h>
-# include <cxxabi.h>
-# include <QFile>
-# include <QTextStream>
-# include <QDebug>
+#if defined(HAVE_BACKTRACE) && !defined(Q_OS_MAC)
+# define BUILD_CRASHHANDLER
+# include <QDebug>
+# include <QFile>
+# include <QTextStream>
+
+# include <cxxabi.h>
+# include <dlfcn.h>
+
+# include "backtrace_config.h"
int i, frames = backtrace(callstack, 128);
QFile dumpFile(filename);
int i, frames = backtrace(callstack, 128);
QFile dumpFile(filename);
- char *func = abi::__cxa_demangle(info.dli_sname, 0, 0, 0);
+ char* func = abi::__cxa_demangle(info.dli_sname, nullptr, nullptr, nullptr);
- QString debugLine = QString("#%1 %2 0x%3 %4").arg(i, 3, 10)
- .arg(fileName, -20)
- .arg((ulong)(callstack[i]), addrSize, 16, QLatin1Char('0'))
- .arg(funcName);
+ QString debugLine = QString("#%1 %2 0x%3 %4")
+ .arg(i, 3, 10)
+ .arg(fileName, -20)
+ .arg((ulong)(callstack[i]), addrSize, 16, QLatin1Char('0'))
+ .arg(funcName);