mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Cosmetics.
This commit is contained in:
parent
ac5e2040b0
commit
327f2d22e1
1 changed files with 4 additions and 8 deletions
|
@ -6,8 +6,8 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Ericsson - Initial API and implementation
|
* Ericsson - Initial API and implementation
|
||||||
* Ericsson - Added support for Mac OS
|
* Ericsson - Added support for Mac OS
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.dsf.gdb.launching;
|
package org.eclipse.cdt.dsf.gdb.launching;
|
||||||
|
|
||||||
|
@ -57,7 +57,6 @@ import org.eclipse.debug.core.DebugException;
|
||||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
|
||||||
public class LaunchUtils {
|
public class LaunchUtils {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A prefix that we use to indicate that a GDB version is for MAC OS
|
* A prefix that we use to indicate that a GDB version is for MAC OS
|
||||||
* @since 3.0
|
* @since 3.0
|
||||||
|
@ -82,8 +81,7 @@ public class LaunchUtils {
|
||||||
if (cproject == null && name.length() > 0) {
|
if (cproject == null && name.length() > 0) {
|
||||||
IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
|
IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
|
||||||
if (!proj.exists()) {
|
if (!proj.exists()) {
|
||||||
abort(
|
abort(LaunchMessages.getFormattedString("AbstractCLaunchDelegate.Project_NAME_does_not_exist", name), null, //$NON-NLS-1$
|
||||||
LaunchMessages.getFormattedString("AbstractCLaunchDelegate.Project_NAME_does_not_exist", name), null, //$NON-NLS-1$
|
|
||||||
ICDTLaunchConfigurationConstants.ERR_NOT_A_C_PROJECT);
|
ICDTLaunchConfigurationConstants.ERR_NOT_A_C_PROJECT);
|
||||||
} else if (!proj.isOpen()) {
|
} else if (!proj.isOpen()) {
|
||||||
abort(LaunchMessages.getFormattedString("AbstractCLaunchDelegate.Project_NAME_is_closed", name), null, //$NON-NLS-1$
|
abort(LaunchMessages.getFormattedString("AbstractCLaunchDelegate.Project_NAME_is_closed", name), null, //$NON-NLS-1$
|
||||||
|
@ -95,7 +93,6 @@ public class LaunchUtils {
|
||||||
return cproject;
|
return cproject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify that program name of the configuration can be found as a file.
|
* Verify that program name of the configuration can be found as a file.
|
||||||
*
|
*
|
||||||
|
@ -131,7 +128,6 @@ public class LaunchUtils {
|
||||||
return programPath;
|
return programPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify that the executable path points to a valid binary file.
|
* Verify that the executable path points to a valid binary file.
|
||||||
*
|
*
|
||||||
|
@ -458,7 +454,7 @@ public class LaunchUtils {
|
||||||
if (sessionType == SessionType.CORE) {
|
if (sessionType == SessionType.CORE) {
|
||||||
try {
|
try {
|
||||||
String coreType = config.getAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_POST_MORTEM_TYPE,
|
String coreType = config.getAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_POST_MORTEM_TYPE,
|
||||||
IGDBLaunchConfigurationConstants.DEBUGGER_POST_MORTEM_TYPE_DEFAULT);
|
IGDBLaunchConfigurationConstants.DEBUGGER_POST_MORTEM_TYPE_DEFAULT);
|
||||||
return coreType.equals(IGDBLaunchConfigurationConstants.DEBUGGER_POST_MORTEM_TRACE_FILE);
|
return coreType.equals(IGDBLaunchConfigurationConstants.DEBUGGER_POST_MORTEM_TRACE_FILE);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue