diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-11-28 18:33:48 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-11-28 18:33:48 -0500 |
commit | 108cfe53d6ac09c18dc531230a38bdc1c25bd2cb (patch) | |
tree | a30fb47bc936db37ffeb6a9b4ad9b95b53abd1fc /base/remote_gdb.cc | |
parent | 47ff0af17e4494ed99c6eebbf8c6b742f7f7dacf (diff) | |
download | gem5-108cfe53d6ac09c18dc531230a38bdc1c25bd2cb.tar.xz |
Make the debugger a bit more useful with m5.opt by moving stuff
from #ifdef DEBUG to #ifndef NDEBUG
base/remote_gdb.cc:
make the remote debugger gdb stuff work in m5.opt
sim/system.cc:
sim/system.hh:
make the console panic break event happen in m5.opt
--HG--
extra : convert_revision : 044a9b7cdacb058112388a31315e45c5d8cf70fd
Diffstat (limited to 'base/remote_gdb.cc')
-rw-r--r-- | base/remote_gdb.cc | 6 |
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 |