mrdocs::installCrashHandlers
Install the handlers that print a stack trace when the process crashes.
Synopsis
Declared in <mrdocs/Support/Process.hpp>
void
installCrashHandlers(
std::string_view argv0,
std::string_view bugReportMessage);
Description
A program that links MrDocs calls this once, at the start of main, instead of using the LLVM support library directly. The program then needs no LLVM of its own, and the crash state lives in one copy. Call it once: later calls keep the values of the first.
Parameters
Name |
Description |
argv0 |
The first element of |
bugReportMessage |
The text printed before the trace, which tells the user where to report the crash. |
Created with MrDocs