summaryrefslogtreecommitdiff
path: root/sim/debug.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2004-11-18 10:59:30 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2004-11-18 10:59:30 -0500
commit45198407d11aecc856d0418466e46a94286425f9 (patch)
treefd00357a00a1e56c29aac9e9465a51cc73a2cf5e /sim/debug.cc
parentbd878a09045e811b0ad626ec15ae9e5fd76d62e1 (diff)
parente78b455cf646cdfa55cb746290b28dda0a73d6e3 (diff)
downloadgem5-45198407d11aecc856d0418466e46a94286425f9.tar.xz
Merge
--HG-- extra : convert_revision : 9d499125f4e8c8659f214c3290cb51679ad0ade2
Diffstat (limited to 'sim/debug.cc')
-rw-r--r--sim/debug.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/debug.cc b/sim/debug.cc
index 293edcbe2..3467d1669 100644
--- a/sim/debug.cc
+++ b/sim/debug.cc
@@ -40,13 +40,15 @@
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