mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
Merge pull request #411 from PhenomRetroShare/Add_SIGFPE_Debug_DEFINES
Add SIGFPE debug DEFINES.
This commit is contained in:
commit
eba90a83c6
@ -46,6 +46,10 @@
|
|||||||
#include "util/RsGxsUpdateBroadcast.h"
|
#include "util/RsGxsUpdateBroadcast.h"
|
||||||
#include "gui/settings/WebuiPage.h"
|
#include "gui/settings/WebuiPage.h"
|
||||||
|
|
||||||
|
#ifdef SIGFPE_DEBUG
|
||||||
|
#include <fenv.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)
|
||||||
#ifdef WINDOWS_SYS
|
#ifdef WINDOWS_SYS
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
@ -155,6 +159,9 @@ int main(int argc, char *argv[])
|
|||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
QDir::setCurrent(QCoreApplication::applicationDirPath());
|
QDir::setCurrent(QCoreApplication::applicationDirPath());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#ifdef SIGFPE_DEBUG
|
||||||
|
feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QStringList args = char_array_to_stringlist(argv+1, argc-1);
|
QStringList args = char_array_to_stringlist(argv+1, argc-1);
|
||||||
|
@ -12,6 +12,7 @@ DEFINES += TARGET=\\\"$TARGET\\\"
|
|||||||
#
|
#
|
||||||
#CONFIG += unfinished
|
#CONFIG += unfinished
|
||||||
#CONFIG += debug
|
#CONFIG += debug
|
||||||
|
#DEFINES *= SIGFPE_DEBUG
|
||||||
|
|
||||||
#QMAKE_CFLAGS += -fmudflap
|
#QMAKE_CFLAGS += -fmudflap
|
||||||
#LIBS *= /usr/lib/gcc/x86_64-linux-gnu/4.4/libmudflap.a /usr/lib/gcc/x86_64-linux-gnu/4.4/libmudflapth.a
|
#LIBS *= /usr/lib/gcc/x86_64-linux-gnu/4.4/libmudflap.a /usr/lib/gcc/x86_64-linux-gnu/4.4/libmudflapth.a
|
||||||
|
Loading…
Reference in New Issue
Block a user