diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-01-22 22:22:09 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-01-22 22:22:09 -0800 |
commit | 45c3f1747c78aff3495edfe2cbe35fbb7a67f2a4 (patch) | |
tree | 78194b3f3a4e4910139271a6645246e7f12a2dab /src/sim/process.cc | |
parent | 8840ebcb00f3988c781063e572b6df5742968f95 (diff) | |
download | gem5-45c3f1747c78aff3495edfe2cbe35fbb7a67f2a4.tar.xz |
Added remote gdb objects to each process
--HG--
extra : convert_revision : 1b5c1470ffc52b2f7719e469153702dec694f9a3
Diffstat (limited to 'src/sim/process.cc')
-rw-r--r-- | src/sim/process.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc index b43fa7d00..1a0f54842 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -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; } |