summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2003-12-04 19:26:31 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2003-12-04 19:26:31 -0500
commitb6c77fe6f8fbd6f38718bed48e731145f763888c (patch)
tree9f3c600ee82e8950b822c89b2e05feaca5c76bd1
parenta2294954003c1a659436863ebfe3aa68cb42f34a (diff)
downloadgem5-b6c77fe6f8fbd6f38718bed48e731145f763888c.tar.xz
remote_gdb.cc:
fix remote gdb base/remote_gdb.cc: fix remote gdb --HG-- extra : convert_revision : 886cad5037e2124e6087be03f2903f07aeed0679
-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 6f9b35e8b..35a90073a 100644
--- a/base/remote_gdb.cc
+++ b/base/remote_gdb.cc
@@ -222,9 +222,6 @@ RemoteGDB::RemoteGDB(System *_system, ExecContext *c)
: event(NULL), fd(-1), active(false), attached(false),
system(_system), pmem(_system->physmem), context(c)
{
-#ifdef DEBUG
- theDebugger = this;
-#endif
memset(gdbregs, 0, sizeof(gdbregs));
}
@@ -248,6 +245,9 @@ RemoteGDB::attach(int f)
attached = true;
DPRINTFN("remote gdb attached\n");
+#ifdef DEBUG
+ theDebugger = this;
+#endif
}
void