[llvm-commits] CVS: llvm/lib/System/Win32/Process.inc
Jeff Cohen
jeffc at jolt-lang.org
Thu Feb 17 23:05:28 PST 2005
Changes in directory llvm/lib/System/Win32:
Process.inc updated: 1.8 -> 1.9
---
Log message:
Make PreventCoreFiles() do the right thing on Windows.
---
Diffs of the changes: (+6 -3)
Process.inc | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/lib/System/Win32/Process.inc
diff -u llvm/lib/System/Win32/Process.inc:1.8 llvm/lib/System/Win32/Process.inc:1.9
--- llvm/lib/System/Win32/Process.inc:1.8 Sat Jan 8 14:15:57 2005
+++ llvm/lib/System/Win32/Process.inc Fri Feb 18 01:05:18 2005
@@ -95,9 +95,12 @@
// 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() {
More information about the llvm-commits
mailing list