If we detect a pass crash during miscompilation testing, immediately enter the
authorChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 19:27:48 +0000 (19:27 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 19:27:48 +0000 (19:27 +0000)
crash debugger

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9234 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/Miscompilation.cpp

index 6ef9fc26c11d684843c9c5f9d7e71188b5860e3e..95d24e96a58de8e66a8b026f6e9be59ebd1ba348 100644 (file)
@@ -35,7 +35,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
               << " on the input program!\n";
     BD.setPassesToRun(Suffix);
     BD.EmitProgressBytecode("pass-error",  false);
-    exit(1);
+    exit(BD.debugCrash());
   }
 
   // Check to see if the finished program matches the reference output...
@@ -63,7 +63,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
               << " on the input program!\n";
     BD.setPassesToRun(Prefix);
     BD.EmitProgressBytecode("pass-error",  false);
-    exit(1);
+    exit(BD.debugCrash());
   }
 
   // If the prefix maintains the predicate by itself, only keep the prefix!
@@ -96,7 +96,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
               << " on the input program!\n";
     BD.setPassesToRun(Suffix);
     BD.EmitProgressBytecode("pass-error",  false);
-    exit(1);
+    exit(BD.debugCrash());
   }
 
   // Run the result...
@@ -210,7 +210,7 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs,
     std::cerr << " Error running this sequence of passes" 
               << " on the input program!\n";
     BD.EmitProgressBytecode("pass-error",  false);
-    exit(1);
+    exit(BD.debugCrash());
   }
 
   if (!EmitBytecode)