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

@@ -16,6 +16,7 @@
#include "../../screenshot.h"
#include "../../debug.h"
#include "../../video/video_driver.hpp"
#include "../../scope.h"
#include "macos.h"
#include <errno.h>
@@ -235,6 +236,10 @@ class CrashLogOSX : public CrashLog {
#endif
for (; frame != nullptr && i < MAX_STACK_FRAMES; i++) {
auto guard = scope_guard([&]() {
this->CrashLogFaultSectionCheckpoint(buffer);
});
/* Get IP for current stack frame. */
#if defined(__ppc__) || defined(__ppc64__)
void *ip = frame[2];