summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorLeny Kholodov <lkholodov@accesssoftek.com>2016-05-04 16:56:51 +0000
committerLeny Kholodov <lkholodov@accesssoftek.com>2016-05-04 16:56:51 +0000
commit1b73e66b5dcfac87eb344401a853b1f7808d9d8b (patch)
treebc18262e726f2c2425461cf839bb3d57252d2718 /llvm/lib/Support/Unix
parentb034526853cf5902932273077f43752d9f2fa90c (diff)
downloadbcm5719-llvm-1b73e66b5dcfac87eb344401a853b1f7808d9d8b.tar.gz
bcm5719-llvm-1b73e66b5dcfac87eb344401a853b1f7808d9d8b.zip
[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
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Process.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index cad81f8074f..d81836b92da 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -169,6 +169,8 @@ void Process::PreventCoreFiles() {
signal(SIGSEGV, _exit);
signal(SIGBUS, _exit);
#endif
+
+ coreFilesPrevented = true;
}
Optional<std::string> Process::GetEnv(StringRef Name) {
OpenPOWER on IntegriCloud