Added remote gdb objects to each process
--HG-- extra : convert_revision : 1b5c1470ffc52b2f7719e469153702dec694f9a3
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "arch/remote_gdb.hh"
|
||||
#include "base/intmath.hh"
|
||||
#include "base/loader/object_file.hh"
|
||||
#include "base/loader/symtab.hh"
|
||||
@@ -154,6 +155,13 @@ 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();
|
||||
//gdbl->accept();
|
||||
|
||||
remoteGDB.push_back(rgdb);
|
||||
|
||||
// return CPU number to caller
|
||||
return myIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user