always writing tdata/working stacktrace when breakpad catches a crash

This commit is contained in:
John Preston 2016-02-01 14:09:11 +03:00
parent b1f267e4dc
commit fa2767cc65
1 changed files with 3 additions and 5 deletions

View File

@ -389,8 +389,6 @@ namespace Logs {
return false;
}
if (LogsInMemory) {
t_assert(LogsInMemory != DeletedLogsInMemory);
LogsInMemoryList list = *LogsInMemory;
@ -720,6 +718,8 @@ namespace SignalHandlers {
}
if (name) {
dump() << "Caught signal " << signum << " (" << name << ") in thread " << uint64(thread) << "\n";
} else if (signum == -1) {
dump() << "Google Breakpad caught a crash, minidump written in thread " << uint64(thread) << "\n";
} else {
dump() << "Caught signal " << signum << " in thread " << uint64(thread) << "\n";
}
@ -809,9 +809,7 @@ namespace SignalHandlers {
bool DumpCallback(const google_breakpad::MinidumpDescriptor &md, void *context, bool success)
#endif
{
#ifdef Q_OS_MAC
Handler(-1, 0, 0);
#endif
return success;
}