[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:
Leny Kholodov
2016-05-04 16:56:51 +00:00
parent d1310b73a3
commit f7a03a4ea3
6 changed files with 247 additions and 1 deletions
+7
View File
@@ -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"