From: Lisa Hsu Date: Fri, 5 Dec 2003 00:26:31 +0000 (-0500) Subject: remote_gdb.cc: X-Git-Tag: m5_1.0_beta2~247 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6c77fe6f8fbd6f38718bed48e731145f763888c;p=gem5.git remote_gdb.cc: fix remote gdb base/remote_gdb.cc: fix remote gdb --HG-- extra : convert_revision : 886cad5037e2124e6087be03f2903f07aeed0679 --- 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