1
0
Fork 0
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:
John Cortell 2009-09-02 15:03:36 +00:00
parent 6c08baf7ac
commit 2b6a99dd42

View file

@ -102,6 +102,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
} else if (sessionType == SessionType.CORE) {
monitor.subTask( LaunchMessages.getString("GdbLaunchDelegate.2") ); //$NON-NLS-1$
} else {
assert sessionType == SessionType.LOCAL : "Unexpected session type: " + sessionType.toString(); //$NON-NLS-1$
monitor.subTask( LaunchMessages.getString("GdbLaunchDelegate.3") ); //$NON-NLS-1$
}
@ -157,7 +158,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
return;
// 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)
// through an ICommandControlShutdownDMEvent
launch.initializeControl();