1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Check for "handle"

This commit is contained in:
Alain Magloire 2003-02-01 23:13:40 +00:00
parent b432ac9c44
commit 94afd4d3bc

View file

@ -9,6 +9,7 @@ import org.eclipse.cdt.debug.mi.core.command.CLICommand;
import org.eclipse.cdt.debug.mi.core.event.MIBreakpointChangedEvent;
import org.eclipse.cdt.debug.mi.core.event.MIEvent;
import org.eclipse.cdt.debug.mi.core.event.MIRunningEvent;
import org.eclipse.cdt.debug.mi.core.event.MISignalChangedEvent;
/**
* Transmission command thread blocks on the command Queue
@ -51,6 +52,8 @@ public class CLIProcessor {
// We know something change, we just do not know what.
// So the easiest way is to let the top layer handle it.
session.fireEvent(new MIBreakpointChangedEvent(0));
} else if (isSettingSignal(operation)) {
session.fireEvent(new MISignalChangedEvent(""));
}
}
@ -126,4 +129,14 @@ public class CLIProcessor {
return isChange;
}
boolean isSettingSignal(String operation) {
boolean isChange = false;
/* changing signal: handle, signal */
if ((operation.startsWith("ha") && "handle".indexOf(operation) != -1) ||
(operation.startsWith("sig") && "signal".indexOf(operation) != -1)) {
isChange = true;
}
return isChange;
}
}