mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 18:21:42 -05:00
always writing tdata/working stacktrace when breakpad catches a crash
This commit is contained in:
parent
b1f267e4dc
commit
fa2767cc65
1 changed files with 3 additions and 5 deletions
|
@ -389,8 +389,6 @@ namespace Logs {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (LogsInMemory) {
|
if (LogsInMemory) {
|
||||||
t_assert(LogsInMemory != DeletedLogsInMemory);
|
t_assert(LogsInMemory != DeletedLogsInMemory);
|
||||||
LogsInMemoryList list = *LogsInMemory;
|
LogsInMemoryList list = *LogsInMemory;
|
||||||
|
@ -720,7 +718,9 @@ namespace SignalHandlers {
|
||||||
}
|
}
|
||||||
if (name) {
|
if (name) {
|
||||||
dump() << "Caught signal " << signum << " (" << name << ") in thread " << uint64(thread) << "\n";
|
dump() << "Caught signal " << signum << " (" << name << ") in thread " << uint64(thread) << "\n";
|
||||||
} else {
|
} 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";
|
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)
|
bool DumpCallback(const google_breakpad::MinidumpDescriptor &md, void *context, bool success)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
Handler(-1, 0, 0);
|
Handler(-1, 0, 0);
|
||||||
#endif
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue