1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

fail on null exe when adapting to an older debugger since they never supported it

This commit is contained in:
David Inglis 2005-05-18 18:26:20 +00:00
parent d6607ac5b1
commit fedc95ad12
2 changed files with 6 additions and 1 deletions

View file

@ -55,6 +55,10 @@ public class CDebugAdapter implements ICDIDebugger {
*/
public ICDISession createDebuggerSession(ILaunch launch, IBinaryObject exe, IProgressMonitor monitor) throws CoreException {
ILaunchConfiguration config = launch.getLaunchConfiguration();
if (exe == null) {
abort(InternalDebugCoreMessages.getString("CDebugAdapter.Program_file_not_specified"), null, //$NON-NLS-1$
ICDTLaunchConfigurationConstants.ERR_UNSPECIFIED_PROGRAM);
}
IFile[] exeFile = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(exe.getPath());
if (exeFile.length == 0) {
abort(InternalDebugCoreMessages.getString("CDebugAdapter.0"), null, -1); //$NON-NLS-1$

View file

@ -18,4 +18,5 @@ CMemoryBlockExtensionRetrieval.1=Invalid expression type: ''{0}''
CMemoryBlockExtensionRetrieval.2=Invalid expression: ''{0}''
DebugConfiguration.0=This debugger no longer supports this operation
CDebugAdapter.0=This debugger does not support debugging external files
CDebugAdapter.1=Debugger Process
CDebugAdapter.1=Debugger Process
CDebugAdapter.Program_file_not_specified=Program file not specified