From 1b73e66b5dcfac87eb344401a853b1f7808d9d8b Mon Sep 17 00:00:00 2001 From: Leny Kholodov Date: Wed, 4 May 2016 16:56:51 +0000 Subject: [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 llvm-svn: 268519 --- llvm/lib/Support/Process.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/Support/Process.cpp') diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp index 6dcbb47e87d..290c30f4968 100644 --- a/llvm/lib/Support/Process.cpp +++ b/llvm/lib/Support/Process.cpp @@ -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" -- cgit v1.2.3