projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
451e41c
)
Easier remote debugging at boot time.
author
Nathan Binkert
<binkertn@umich.edu>
Thu, 30 Jun 2005 02:20:38 +0000
(22:20 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Thu, 30 Jun 2005 02:20:38 +0000
(22:20 -0400)
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
sim/system.cc
patch
|
blob
|
history
diff --git
a/sim/system.cc
b/sim/system.cc
index 6f7d53f6b5c78300d9949375e876da1a0b78279b..47ffc4b016552e8668135e5c8bdfb18b3a31ffd5 100644
(file)
--- 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);