summaryrefslogtreecommitdiff
path: root/sim/system.cc
diff options
context:
space:
mode:
authorBenjamin Nash <benash@umich.edu>2005-07-01 15:07:13 -0400
committerBenjamin Nash <benash@umich.edu>2005-07-01 15:07:13 -0400
commit6bf97032135fcff8eb4993409cef3511db800e6c (patch)
treecc109e9d72f0e1bf1dd2489054ac4ca7cae3c474 /sim/system.cc
parent81b57af24118ad61329a848b3b66874e6e05ecb9 (diff)
parentefd0c5d4b04f630f1b591af509458224b6d98655 (diff)
downloadgem5-6bf97032135fcff8eb4993409cef3511db800e6c.tar.xz
Merge m5read@m5.eecs.umich.edu:/bk/m5
into zed.eecs.umich.edu:/z/benash/bk/m5 --HG-- extra : convert_revision : b421397b21326ec2bdd3ce82b9f69e224b380610
Diffstat (limited to 'sim/system.cc')
-rw-r--r--sim/system.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/system.cc b/sim/system.cc
index 6f7d53f6b..47ffc4b01 100644
--- a/sim/system.cc
+++ b/sim/system.cc
@@ -203,6 +203,8 @@ System::breakpoint()
return remoteGDB[0]->trap(ALPHA_KENTRY_INT);
}
+int rgdb_wait = -1;
+
int
System::registerExecContext(ExecContext *xc, int id)
{
@@ -229,7 +231,8 @@ System::registerExecContext(ExecContext *xc, int id)
* Uncommenting this line waits for a remote debugger to connect
* to the simulator before continuing.
*/
- //gdbl->accept();
+ if (rgdb_wait != -1 && rgdb_wait == id)
+ gdbl->accept();
if (remoteGDB.size() <= id) {
remoteGDB.resize(id + 1);