[llvm-commits] CVS: llvm/lib/Support/Signals.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 19 14:12:07 PST 2004


Changes in directory llvm/lib/Support:

Signals.cpp updated: 1.12 -> 1.13

---
Log message:

Implement new function


---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/Support/Signals.cpp
diff -u llvm/lib/Support/Signals.cpp:1.12 llvm/lib/Support/Signals.cpp:1.13
--- llvm/lib/Support/Signals.cpp:1.12	Thu Feb 19 01:36:35 2004
+++ llvm/lib/Support/Signals.cpp	Thu Feb 19 14:03:14 2004
@@ -69,3 +69,9 @@
   std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
   std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
 }
+
+/// PrintStackTraceOnErrorSignal - When an error signal (such as SIBABRT or
+/// SIGSEGV) is delivered to the process, print a stack trace and then exit.
+void llvm::PrintStackTraceOnErrorSignal() {
+  std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
+}





More information about the llvm-commits mailing list