Crash log: Checkpoint each line of decoded stack trace

This commit is contained in:
Jonathan G Rennison
2023-06-12 19:03:37 +01:00
parent da07c8ce51
commit 76304c1f76
3 changed files with 13 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#include "../../string_func.h"
#include "../../gamelog.h"
#include "../../sl/saveload.h"
#include "../../scope.h"
#include <errno.h>
#include <signal.h>
@@ -526,6 +527,9 @@ class CrashLogUnix : public CrashLog {
#endif /* WITH_BFD */
for (int i = 0; i < trace_size; i++) {
auto guard = scope_guard([&]() {
this->CrashLogFaultSectionCheckpoint(buffer);
});
#if defined(WITH_DL)
Dl_info info;
#if defined(WITH_DL2)