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