diff options
author | Leny Kholodov <lkholodov@accesssoftek.com> | 2016-05-04 16:56:51 +0000 |
---|---|---|
committer | Leny Kholodov <lkholodov@accesssoftek.com> | 2016-05-04 16:56:51 +0000 |
commit | 1b73e66b5dcfac87eb344401a853b1f7808d9d8b (patch) | |
tree | bc18262e726f2c2425461cf839bb3d57252d2718 /llvm/lib/Support/Unix | |
parent | b034526853cf5902932273077f43752d9f2fa90c (diff) | |
download | bcm5719-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.inc | 2 |
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) { |