Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
simulate_crash_mac.h File Reference
#include <mach/mach.h>
#include "util/misc/capture_context.h"
Include dependency graph for simulate_crash_mac.h:

Namespaces

namespace  crashpad
 The main namespace.
 

Macros

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

Functions

void crashpad::SimulateCrash (const NativeCPUContext &cpu_context)
 Simulates a exception without crashing.
 

Macro Definition Documentation

◆ CRASHPAD_SIMULATE_CRASH

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

Captures the CPU context and simulates an exception without crashing.