mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Code bulletproofing (added an assert) and corrected a typo in a comment.
This commit is contained in:
parent
6c08baf7ac
commit
2b6a99dd42
1 changed files with 2 additions and 1 deletions
|
@ -102,6 +102,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
|
||||||
} else if (sessionType == SessionType.CORE) {
|
} else if (sessionType == SessionType.CORE) {
|
||||||
monitor.subTask( LaunchMessages.getString("GdbLaunchDelegate.2") ); //$NON-NLS-1$
|
monitor.subTask( LaunchMessages.getString("GdbLaunchDelegate.2") ); //$NON-NLS-1$
|
||||||
} else {
|
} else {
|
||||||
|
assert sessionType == SessionType.LOCAL : "Unexpected session type: " + sessionType.toString(); //$NON-NLS-1$
|
||||||
monitor.subTask( LaunchMessages.getString("GdbLaunchDelegate.3") ); //$NON-NLS-1$
|
monitor.subTask( LaunchMessages.getString("GdbLaunchDelegate.3") ); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,7 +158,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// The initializeControl method should be called after the ICommandControlService
|
// The initializeControl method should be called after the ICommandControlService
|
||||||
// be initialized in the ServicesLaunchSequence above. This is because it is that
|
// is initialized in the ServicesLaunchSequence above. This is because it is that
|
||||||
// service that will trigger the launch cleanup (if we need it during this launch)
|
// service that will trigger the launch cleanup (if we need it during this launch)
|
||||||
// through an ICommandControlShutdownDMEvent
|
// through an ICommandControlShutdownDMEvent
|
||||||
launch.initializeControl();
|
launch.initializeControl();
|
||||||
|
|
Loading…
Add table
Reference in a new issue