1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 20:35:38 +02:00

Applied modified version of patch in 224976.

This commit is contained in:
John Cortell 2008-03-31 19:50:48 +00:00
parent 44008336e4
commit e2a73ed222

View file

@ -705,18 +705,18 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
}
}
IBinaryParser parser = CCorePlugin.getDefault().getDefaultBinaryParser();
Exception exception;
try {
return (IBinaryObject)parser.getBinary(exePath);
} catch (ClassCastException e) {
exception = e;
} catch (IOException e) {
exception = e;
}
Throwable exception = new FileNotFoundException(LaunchMessages.getFormattedString(
"AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable", exePath.toOSString())); //$NON-NLS-1$
int code = ICDTLaunchConfigurationConstants.ERR_PROGRAM_NOT_BINARY;
MultiStatus status = new MultiStatus(getPluginID(), code, LaunchMessages
.getString("AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable"), exception); //$NON-NLS-1$
status.add(new Status(IStatus.ERROR, getPluginID(), code, exception == null ? "" : exception.getLocalizedMessage(), //$NON-NLS-1$
exception));
Status status = new Status(IStatus.ERROR,getPluginID(),
ICDTLaunchConfigurationConstants.ERR_PROGRAM_NOT_BINARY,
LaunchMessages.getString("AbstractCLaunchDelegate.Program_is_not_a_recongnized_executable") + " " + exePath.toOSString(), //$NON-NLS-1$
exception);
throw new CoreException(status);
}