diff options
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/system.cc | 9 | ||||
-rw-r--r-- | src/sim/system.hh | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/sim/system.cc b/src/sim/system.cc index 2f047f227..ed01e0e64 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -261,16 +261,15 @@ System::registerThreadContext(ThreadContext *tc, ContextID assigned) #if THE_ISA != NULL_ISA int port = getRemoteGDBPort(); if (port) { - RemoteGDB *rgdb = new RemoteGDB(this, tc); - GDBListener *gdbl = new GDBListener(rgdb, port + id); - gdbl->listen(); + RemoteGDB *rgdb = new RemoteGDB(this, tc, port + id); + rgdb->listen(); BaseCPU *cpu = tc->getCpuPtr(); if (cpu->waitForRemoteGDB()) { inform("%s: Waiting for a remote GDB connection on port %d.\n", - cpu->name(), gdbl->getPort()); + cpu->name(), rgdb->port()); - gdbl->accept(); + rgdb->connect(); } if (remoteGDB.size() <= id) { remoteGDB.resize(id + 1); diff --git a/src/sim/system.hh b/src/sim/system.hh index acd3108a0..5b0c17872 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -75,7 +75,6 @@ #endif class BaseRemoteGDB; -class GDBListener; class KvmVM; class ObjectFile; class ThreadContext; @@ -491,7 +490,6 @@ class System : public MemObject public: std::vector<BaseRemoteGDB *> remoteGDB; - std::vector<GDBListener *> gdbListen; bool breakpoint(); public: |