--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-20 13:12:15 +03:00
commit 305818bd8e
3 changed files with 11 additions and 5 deletions

View file

@ -678,7 +678,7 @@ void VApplication::GatherLogs() const
*out <<"--------------------------" << endl; *out <<"--------------------------" << endl;
if (tmp.GetProtected()->open(QIODevice::ReadOnly | QIODevice::Text)) if (tmp.GetProtected()->open(QIODevice::ReadOnly | QIODevice::Text))
{ {
QTextStream in(&tmp.GetProtected()); QTextStream in(tmp.GetProtected().get());
while (!in.atEnd()) while (!in.atEnd())
{ {
*out << in.readLine() << endl; *out << in.readLine() << endl;
@ -687,7 +687,7 @@ void VApplication::GatherLogs() const
} }
else else
{ {
*out << "Log file error:" + logFile.errorString() << endl; *out << "Log file error:" + tmp.GetProtected()->errorString() << endl;
} }
} }
else else

View file

@ -114,9 +114,13 @@ static void __inline__ debug_break(void)
* (gdb) handle SIGILL stop nopass * (gdb) handle SIGILL stop nopass
* */ * */
__builtin_trap(); __builtin_trap();
} else { } else {
raise(SIGTRAP); #ifdef _WIN32
} __builtin_trap();
#else
raise(SIGTRAP);
#endif
}
} }
#ifdef __cplusplus #ifdef __cplusplus

View file

@ -51,6 +51,8 @@ $$enable_ccache()
# Set precompiled headers. Function set_PCH() defined in common.pri. # Set precompiled headers. Function set_PCH() defined in common.pri.
$$set_PCH() $$set_PCH()
INCLUDEPATH += $$PWD/../vpatterndb
CONFIG(debug, debug|release){ CONFIG(debug, debug|release){
# Debug mode # Debug mode
unix { unix {