summaryrefslogtreecommitdiff
path: root/sim/debug.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-05-13 06:59:05 -0400
committerNathan Binkert <binkertn@umich.edu>2004-05-13 06:59:05 -0400
commitce697a592e9e999f49d39e8ffe75995f0fb7eeb9 (patch)
tree857656d156e15f4daa6ad75bc1814cc07c57c199 /sim/debug.cc
parenta4d7bb113aa4ed398a2ec7f6fb01b6d866fba60c (diff)
downloadgem5-ce697a592e9e999f49d39e8ffe75995f0fb7eeb9.tar.xz
Avoid sending a signal to ourselves if we're not debugging
--HG-- extra : convert_revision : d6ba1ce30bad4a44d716238a8107c3bff0ce89c4
Diffstat (limited to 'sim/debug.cc')
-rw-r--r--sim/debug.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/debug.cc b/sim/debug.cc
index 09c604a95..b73ab4245 100644
--- a/sim/debug.cc
+++ b/sim/debug.cc
@@ -40,11 +40,13 @@
using namespace std;
+#ifdef DEBUG
void
debug_break()
{
kill(getpid(), SIGTRAP);
}
+#endif
//
// Debug event: place a breakpoint on the process function and