mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
catch "ignore" and "condition" commands.
This commit is contained in:
parent
d206c6748f
commit
1c4086c197
1 changed files with 5 additions and 3 deletions
|
@ -46,7 +46,7 @@ public class CLIProcessor {
|
||||||
session.fireEvent(event);
|
session.fireEvent(event);
|
||||||
} else if (isSettingBreakpoint(operation) ||
|
} else if (isSettingBreakpoint(operation) ||
|
||||||
isSettingWatchpoint(operation) ||
|
isSettingWatchpoint(operation) ||
|
||||||
isEnableBreakpoint(operation) ||
|
isChangeBreakpoint(operation) ||
|
||||||
isDeletingBreakpoint(operation)) {
|
isDeletingBreakpoint(operation)) {
|
||||||
// We know something change, we just do not know what.
|
// We know something change, we just do not know what.
|
||||||
// So the easiest way is to let the top layer handle it.
|
// So the easiest way is to let the top layer handle it.
|
||||||
|
@ -113,12 +113,14 @@ public class CLIProcessor {
|
||||||
return isDelete;
|
return isDelete;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isEnableBreakpoint(String operation) {
|
boolean isChangeBreakpoint(String operation) {
|
||||||
boolean isChange = false;
|
boolean isChange = false;
|
||||||
/* changing breaks: enable, disable */
|
/* changing breaks: enable, disable */
|
||||||
if ((operation.equals("dis") || operation.equals("disa") ||
|
if ((operation.equals("dis") || operation.equals("disa") ||
|
||||||
(operation.startsWith("disa") && "disable".indexOf(operation) != -1)) ||
|
(operation.startsWith("disa") && "disable".indexOf(operation) != -1)) ||
|
||||||
(operation.equals("en") || (operation.startsWith("en") && "enable".indexOf(operation) != -1))) {
|
(operation.equals("en") || (operation.startsWith("en") && "enable".indexOf(operation) != -1)) ||
|
||||||
|
(operation.startsWith("ig") && "ignore".indexOf(operation) != -1) ||
|
||||||
|
(operation.startsWith("cond") && "condition".indexOf(operation) != -1)) {
|
||||||
isChange = true;
|
isChange = true;
|
||||||
}
|
}
|
||||||
return isChange;
|
return isChange;
|
||||||
|
|
Loading…
Add table
Reference in a new issue