#include "client/crashpad_client.h"
#include "util/misc/capture_context.h"
◆ 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)