Crashlog: Unix: Handle simultaneous crash signals in multiple threads

Avoid changing signal handler during crash
Just adjust the signal proc mask and vary response of signal handler
This commit is contained in:
Jonathan G Rennison
2024-03-12 23:59:17 +00:00
parent af867a4b33
commit a887333f00
3 changed files with 84 additions and 17 deletions

View File

@@ -117,6 +117,15 @@ protected:
*/
virtual char *LogRegisters(char *buffer, const char *last) const;
/**
* Writes a final section in the crash log, if there is anything
* to add at the end.
* @param buffer The begin where to write at.
* @param last The last position in the buffer to write to.
* @return the position of the \c '\0' character after the buffer.
*/
virtual char *LogCrashTrailer(char *buffer, const char *last) const;
#ifdef USE_SCOPE_INFO
/**
* Writes the scope info log to the buffer.