Crashpad
 
Loading...
Searching...
No Matches
simulate_crash_ios.h File Reference
#include "client/crashpad_client.h"
#include "util/misc/capture_context.h"

Macros

#define CRASHPAD_SIMULATE_CRASH()
 Captures the CPU context and creates a minidump dump without an exception. The minidump will immediately become eligible for further processing, including upload.
 
#define CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING()
 Captures the CPU context and captures an intermediate dump without an exception. Does not convert the intermediate dump into a minidump.
 
#define CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING_AT_PATH(path)
 

Macro Definition Documentation

◆ CRASHPAD_SIMULATE_CRASH

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

Captures the CPU context and creates a minidump dump without an exception. The minidump will immediately become eligible for further processing, including upload.

See also
CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING

◆ CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING

#define CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING ( )
Value:
do { \
crashpad::NativeCPUContext cpu_context; \
crashpad::CaptureContext(&cpu_context); \
crashpad::CrashpadClient::DumpWithoutCrashAndDeferProcessing( \
&cpu_context); \
} while (false)

Captures the CPU context and captures an intermediate dump without an exception. Does not convert the intermediate dump into a minidump.

Deferring processing is useful when the application may be in an unstable state, such as during a hang.

See also
CRASHPAD_SIMULATE_CRASH

◆ CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING_AT_PATH

#define CRASHPAD_SIMULATE_CRASH_AND_DEFER_PROCESSING_AT_PATH ( path)
Value:
do { \
crashpad::NativeCPUContext cpu_context; \
crashpad::CaptureContext(&cpu_context); \
crashpad::CrashpadClient::DumpWithoutCrashAndDeferProcessingAtPath( \
&cpu_context, path); \
} while (false)