60a61
> #include "cpu/base.hh"
224,230d224
< /**
< * Setting rgdb_wait to a positive integer waits for a remote debugger to
< * connect to that context ID before continuing. This should really
< be a parameter on the CPU object or something...
< */
< int rgdb_wait = -1;
<
262,263c256,259
< if (rgdb_wait != -1 && rgdb_wait == id)
< gdbl->accept();
---
> BaseCPU *cpu = tc->getCpuPtr();
> if (cpu->waitForRemoteGDB()) {
> inform("%s: Waiting for a remote GDB connection on port %d.\n",
> cpu->name(), gdbl->getPort());
264a261,262
> gdbl->accept();
> }