projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Minor fixes.
[gem5.git]
/
sim
/
debug.cc
diff --git
a/sim/debug.cc
b/sim/debug.cc
index 293edcbe2746557268a827a89b630b158a933344..3467d16695e37687e13f8f62d380339b043235f0 100644
(file)
--- 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