1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Code bulletproofing (added an assert)

This commit is contained in:
John Cortell 2009-09-02 15:05:18 +00:00
parent 7732cae61f
commit f138b26d24

View file

@ -294,6 +294,8 @@ public class LaunchUtils {
return SessionType.REMOTE; return SessionType.REMOTE;
} else if (debugMode.equals(IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE_ATTACH)) { } else if (debugMode.equals(IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE_ATTACH)) {
return SessionType.REMOTE; return SessionType.REMOTE;
} else {
assert false : "Unexpected session-type attribute in launch config: " + debugMode; //$NON-NLS-1$
} }
} catch (CoreException e) { } catch (CoreException e) {
} }