Easier remote debugging at boot time.

sim/system.cc:
    Add a global variable that will tell the remote debugger to
    wait when a given CPU is is registered.

--HG--
extra : convert_revision : a093c9331daa675d4b59a321e53a5da6ea292c40
This commit is contained in:
Nathan Binkert 2005-06-29 22:20:38 -04:00
parent 451e41c6e9
commit ec1f689d0d

View file

@ -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);