From b6c77fe6f8fbd6f38718bed48e731145f763888c Mon Sep 17 00:00:00 2001 From: Lisa Hsu Date: Thu, 4 Dec 2003 19:26:31 -0500 Subject: [PATCH] remote_gdb.cc: fix remote gdb base/remote_gdb.cc: fix remote gdb --HG-- extra : convert_revision : 886cad5037e2124e6087be03f2903f07aeed0679 --- base/remote_gdb.cc | 6 +++--- 1 file 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 -- 2.30.2