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:
parent
7732cae61f
commit
f138b26d24
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue