mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
fail on null exe when adapting to an older debugger since they never supported it
This commit is contained in:
parent
d6607ac5b1
commit
fedc95ad12
2 changed files with 6 additions and 1 deletions
|
@ -55,6 +55,10 @@ public class CDebugAdapter implements ICDIDebugger {
|
||||||
*/
|
*/
|
||||||
public ICDISession createDebuggerSession(ILaunch launch, IBinaryObject exe, IProgressMonitor monitor) throws CoreException {
|
public ICDISession createDebuggerSession(ILaunch launch, IBinaryObject exe, IProgressMonitor monitor) throws CoreException {
|
||||||
ILaunchConfiguration config = launch.getLaunchConfiguration();
|
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());
|
IFile[] exeFile = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(exe.getPath());
|
||||||
if (exeFile.length == 0) {
|
if (exeFile.length == 0) {
|
||||||
abort(InternalDebugCoreMessages.getString("CDebugAdapter.0"), null, -1); //$NON-NLS-1$
|
abort(InternalDebugCoreMessages.getString("CDebugAdapter.0"), null, -1); //$NON-NLS-1$
|
||||||
|
|
|
@ -19,3 +19,4 @@ CMemoryBlockExtensionRetrieval.2=Invalid expression: ''{0}''
|
||||||
DebugConfiguration.0=This debugger no longer supports this operation
|
DebugConfiguration.0=This debugger no longer supports this operation
|
||||||
CDebugAdapter.0=This debugger does not support debugging external files
|
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
|
Loading…
Add table
Reference in a new issue