ARM: Add minimal ARM_SE support for m5threads.
[gem5.git] / src / sim / debug.cc
index 57ca0458ce3b45013531fb876ec81de4c5f1782c..f8a3215d0dceb4562e95399799b428410a4fc64a 100644 (file)
  */
 
 #include <Python.h>
-#include <sys/types.h>
-#include <signal.h>
-#include <unistd.h>
 
 #include <string>
 #include <vector>
 
+#include "base/debug.hh"
 #include "sim/debug.hh"
 #include "sim/eventq.hh"
 #include "sim/sim_events.hh"
 
 using namespace std;
 
-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
 // schedule the event to break at a particular cycle