summaryrefslogtreecommitdiff
path: root/base/remote_gdb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/remote_gdb.cc')
-rw-r--r--base/remote_gdb.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/remote_gdb.cc b/base/remote_gdb.cc
index 1f3a60bbf..67d745d43 100644
--- a/base/remote_gdb.cc
+++ b/base/remote_gdb.cc
@@ -133,7 +133,7 @@
using namespace std;
-#ifdef DEBUG
+#ifndef NDEBUG
vector<RemoteGDB *> debuggers;
int current_debugger = -1;
@@ -195,12 +195,12 @@ GDBListener::listen()
event = new Event(this, listener.getfd(), POLLIN);
pollQueue.schedule(event);
-#ifdef DEBUG
+#ifndef NDEBUG
gdb->number = debuggers.size();
debuggers.push_back(gdb);
#endif
-#ifdef DEBUG
+#ifndef NDEBUG
ccprintf(cerr, "%d: %s: listening for remote gdb #%d on port %d\n",
curTick, name(), gdb->number, port);
#else