Crashpad
Macros
simulate_crash_linux.h File Reference
#include "client/crashpad_client.h"
#include "util/misc/capture_context.h"

Macros

#define CRASHPAD_SIMULATE_CRASH()
 Captures the CPU context and simulates an exception without crashing. More...
 

Macro Definition Documentation

◆ CRASHPAD_SIMULATE_CRASH

#define CRASHPAD_SIMULATE_CRASH ( )
Value:
do { \
crashpad::NativeCPUContext simulate_crash_cpu_context; \
crashpad::CaptureContext(&simulate_crash_cpu_context); \
crashpad::CrashpadClient::DumpWithoutCrash(&simulate_crash_cpu_context); \
} while (false)

Captures the CPU context and simulates an exception without crashing.

crashpad::CrashpadClient::DumpWithoutCrash
static void DumpWithoutCrash(NativeCPUContext *context)
Requests that the handler capture a dump even though there hasn't been a crash.
Definition: crashpad_client_ios.cc:222