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.
This commit is contained in:
parent
c8cf71f1a0
commit
526b1b7ec8
1 changed files with 6 additions and 0 deletions
|
@ -249,6 +249,12 @@ BaseRemoteGDB::InputEvent::InputEvent(BaseRemoteGDB *g, int fd, int e)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue