diff options
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 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 |