1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 21:15:23 +02:00

Bug 375067: [remote] Automated remote launch does not support project-less debug

This commit is contained in:
Anna Dushistova 2012-03-22 13:44:51 -04:00 committed by Marc Khouzam
parent 9e7c69f289
commit 838d1e80e5

View file

@ -19,6 +19,7 @@
* Anna Dushistova (Mentor Graphics) - adapted from RemoteCMainTab * Anna Dushistova (Mentor Graphics) - adapted from RemoteCMainTab
* Anna Dushistova (Mentor Graphics) - moved to org.eclipse.cdt.launch.remote.tabs * Anna Dushistova (Mentor Graphics) - moved to org.eclipse.cdt.launch.remote.tabs
* Anna Dushistova (Mentor Graphics) - [318052] [remote launch] Properties are not saved/used * Anna Dushistova (Mentor Graphics) - [318052] [remote launch] Properties are not saved/used
* Anna Dushistova (MontaVista) - [375067] [remote] Automated remote launch does not support project-less debug
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.launch.remote.tabs; package org.eclipse.cdt.launch.remote.tabs;
@ -31,6 +32,7 @@ import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.jface.dialogs.Dialog; import org.eclipse.jface.dialogs.Dialog;
@ -540,8 +542,7 @@ public class RemoteCDSFMainTab extends CMainTab {
remoteProgText.setText(remoteWsRoot); remoteProgText.setText(remoteWsRoot);
} else { } else {
// try to use remote path // try to use remote path
IPath wsRoot = getCProject().getProject().getWorkspace() IPath wsRoot = Platform.getLocation();
.getRoot().getLocation();
IPath remotePath = makeRelativeToWSRootLocation(new Path( IPath remotePath = makeRelativeToWSRootLocation(new Path(
remoteName), remoteWsRoot, wsRoot); remoteName), remoteWsRoot, wsRoot);
remoteProgText.setText(remotePath.toString()); remoteProgText.setText(remotePath.toString());