Minor fixes.
[gem5.git] / sim / debug.cc
index 293edcbe2746557268a827a89b630b158a933344..3467d16695e37687e13f8f62d380339b043235f0 100644 (file)
 
 using namespace std;
 
-#ifdef DEBUG
 void
 debug_break()
 {
+#ifndef NDEBUG
     kill(getpid(), SIGTRAP);
-}
+#else
+    cprintf("debug_break suppressed, compiled with NDEBUG\n");
 #endif
+}
 
 //
 // Debug event: place a breakpoint on the process function and