diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-02-18 07:05:18 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-02-18 07:05:18 +0000 |
commit | d79bcfddbc05affd4100feed6a4e7f48815e62e7 (patch) | |
tree | e2989b2e4307cdfdbae6172b3849deca94c0eeba | |
parent | 600df458ffe36ff4ed6aeead4754b79d09c0a861 (diff) | |
download | external_llvm-d79bcfddbc05affd4100feed6a4e7f48815e62e7.zip external_llvm-d79bcfddbc05affd4100feed6a4e7f48815e62e7.tar.gz external_llvm-d79bcfddbc05affd4100feed6a4e7f48815e62e7.tar.bz2 |
Make PreventCoreFiles() do the right thing on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20237 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Win32/Process.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/System/Win32/Process.inc b/lib/System/Win32/Process.inc index 392bac2..7c8de64 100644 --- a/lib/System/Win32/Process.inc +++ b/lib/System/Win32/Process.inc @@ -95,9 +95,12 @@ Process::GetTimeUsage( // their operation. To prevent the disk from filling up, this configuration item // does what's necessary to prevent their generation. void Process::PreventCoreFiles() { - // Windows doesn't do core files, so nothing to do. - // Although... it might be nice to prevent the do-you-want-to-debug - // dialog box from coming up. Or maybe not... + // Windows doesn't do core files, but it does do modal pop-up message + // boxes. As this method is used by bugpoint, preventing these pop-ups + // is the moral equivalent of suppressing core files. + SetErrorMode(SEM_FAILCRITICALERRORS | + SEM_NOGPFAULTERRORBOX | + SEM_NOOPENFILEERRORBOX); } bool Process::StandardInIsUserInput() { |