Restore the pretty stack state saved by SavePrettyStackState.

Synopsis

Declared in <llvm/Support/PrettyStackTrace.h>

void
RestorePrettyStackState(void const* State);

Description

State should come from a previous call to SavePrettyStackState(). This is useful when using a CrashRecoveryContext in code that also uses PrettyStackTraceEntries, to make sure the stack that's printed if a crash happens after a crash that's been recovered by CrashRecoveryContext doesn't have frames on it that were added in code unwound by the CrashRecoveryContext.

Parameters

Name

Description

State

Opaque stack state previously returned by SavePrettyStackState().

Created with MrDocs