mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
[Support] Creation of minidump after compiler crash on Windows
In the current implementation compiler only prints stack trace to console after crash. This patch adds saving of minidump files which contain a useful subset of the information for further debugging. Differential Revision: http://reviews.llvm.org/D18216 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -73,6 +73,13 @@ static const char colorcodes[2][2][8][10] = {
|
||||
{ ALLCOLORS("4",""), ALLCOLORS("4","1;") }
|
||||
};
|
||||
|
||||
// This is set to true when Process::PreventCoreFiles() is called.
|
||||
static bool coreFilesPrevented = false;
|
||||
|
||||
bool Process::AreCoreFilesPrevented() {
|
||||
return coreFilesPrevented;
|
||||
}
|
||||
|
||||
// Include the platform-specific parts of this class.
|
||||
#ifdef LLVM_ON_UNIX
|
||||
#include "Unix/Process.inc"
|
||||
|
||||
Reference in New Issue
Block a user