From 15a573f3a79be848c814270fef77dcd1981e2b19 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 12 Jun 2012 13:04:20 +1000 Subject: [PATCH] Trigger panic breakpoint after printing the message --- debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug.cpp b/debug.cpp index 869994bd..7b5ca4fa 100644 --- a/debug.cpp +++ b/debug.cpp @@ -31,8 +31,8 @@ using namespace std; //------------------------------------------------------------------------------ void panic (const std::string& what) { - breakpoint (); cerr << "PANIC: " << what << "\n" << debug::backtrace () << endl; + breakpoint (); abort (); }