Remote GDB: Turn on remote gdb in SE mode.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 3 Oct 2007 01:26:27 +0000 (18:26 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 3 Oct 2007 01:26:27 +0000 (18:26 -0700)
--HG--
extra : convert_revision : e17eb629071edd0dbcb09dd6a6a2220d2c83d33f

src/sim/process.cc

index 8f36fba1b4f35da1ec896fad8718c291a153a273..6ec7c86098ef425ec9d537d12e3e5385397dc82e 100644 (file)
@@ -159,12 +159,12 @@ Process::registerThreadContext(ThreadContext *tc)
     int myIndex = threadContexts.size();
     threadContexts.push_back(tc);
 
-//    RemoteGDB *rgdb = new RemoteGDB(system, tc);
-//    GDBListener *gdbl = new GDBListener(rgdb, 7000 + myIndex);
-//    gdbl->listen();
+    RemoteGDB *rgdb = new RemoteGDB(system, tc);
+    GDBListener *gdbl = new GDBListener(rgdb, 7000 + myIndex);
+    gdbl->listen();
     //gdbl->accept();
 
-//    remoteGDB.push_back(rgdb);
+    remoteGDB.push_back(rgdb);
 
     // return CPU number to caller
     return myIndex;