changeset 370d69b00fcf in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=370d69b00fcf
description:
misc: Adds a warning in case gdb is attached multiple times
Instead of scheduling another event, this patch adds a warning in case
gdb
is attached multiple times and the first attachement event has not been
processed yet.
diffstat:
src/base/remote_gdb.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 5fad5a37d6fc -r 370d69b00fcf src/base/remote_gdb.cc
--- a/src/base/remote_gdb.cc Tue Oct 04 13:03:52 2016 -0400
+++ b/src/base/remote_gdb.cc Tue Oct 04 13:04:19 2016 -0400
@@ -249,6 +249,12 @@
void
BaseRemoteGDB::InputEvent::process(int revent)
{
+ if (gdb->trapEvent.scheduled()) {
+ warn("GDB trap event has already been scheduled! "
+ "Ignoring this input event.");
+ return;
+ }
+
if (revent & POLLIN) {
gdb->trapEvent.type(SIGILL);
gdb->scheduleInstCommitEvent(&gdb->trapEvent, 0);
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev