diff options
author | Nathan Binkert <nate@binkert.org> | 2009-02-23 11:48:40 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-02-23 11:48:40 -0800 |
commit | 3fa9812e1d572cd06f95cec138b87d590160e4b4 (patch) | |
tree | 856377348451d332cc7fcba9c02cf61136270dae /src/sim/debug.cc | |
parent | e8c1c3e72eb01409f7ec110eee3b32c07347bf6f (diff) | |
download | gem5-3fa9812e1d572cd06f95cec138b87d590160e4b4.tar.xz |
debug: Move debug_break into src/base
Diffstat (limited to 'src/sim/debug.cc')
-rw-r--r-- | src/sim/debug.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/sim/debug.cc b/src/sim/debug.cc index 57ca0458c..f8a3215d0 100644 --- a/src/sim/debug.cc +++ b/src/sim/debug.cc @@ -30,29 +30,17 @@ */ #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 |