changeset 94 | d74b720418db |
parent 2 | d760517a8095 |
child 728 | a39d0ba41f81 |
child 857 | d66843399035 |
92:cfa799aaafa1 | 94:d74b720418db |
---|---|
30 import org.eclipse.swt.widgets.Display; |
30 import org.eclipse.swt.widgets.Display; |
31 |
31 |
32 import com.freescale.cdt.debug.cw.CWException; |
32 import com.freescale.cdt.debug.cw.CWException; |
33 import com.freescale.cdt.debug.cw.core.RemoteConnectionsTRKHelper; |
33 import com.freescale.cdt.debug.cw.core.RemoteConnectionsTRKHelper; |
34 import com.freescale.cdt.debug.cw.core.cdi.Session; |
34 import com.freescale.cdt.debug.cw.core.cdi.Session; |
35 import com.freescale.cdt.debug.cw.core.cdi.model.Target; |
|
35 import com.nokia.carbide.cdt.builder.CarbideBuilderPlugin; |
36 import com.nokia.carbide.cdt.builder.CarbideBuilderPlugin; |
36 import com.nokia.carbide.cdt.builder.builder.CarbideCPPBuilder; |
37 import com.nokia.carbide.cdt.builder.builder.CarbideCPPBuilder; |
37 import com.nokia.carbide.cdt.builder.project.ICarbideBuildConfiguration; |
38 import com.nokia.carbide.cdt.builder.project.ICarbideBuildConfiguration; |
38 import com.nokia.carbide.cdt.builder.project.ICarbideProjectInfo; |
39 import com.nokia.carbide.cdt.builder.project.ICarbideProjectInfo; |
39 import com.nokia.carbide.remoteconnections.interfaces.IConnection; |
40 import com.nokia.carbide.remoteconnections.interfaces.IConnection; |
157 } |
158 } |
158 |
159 |
159 config = synchronizeWithProjectAccessPaths(project, config); |
160 config = synchronizeWithProjectAccessPaths(project, config); |
160 |
161 |
161 File wd = getWorkingDirectory(config); |
162 File wd = getWorkingDirectory(config); |
162 cwDebugSession.launchExecutable(launch, config, exeFile, otherExecutables, arguments, wd, getEnvironmentAsProperty(config), monitor, project, getTargetLabel(exeFile.getName()), true); |
163 Target target = cwDebugSession.launchExecutable(launch, config, exeFile, otherExecutables, arguments, wd, getEnvironmentAsProperty(config), monitor, project, getTargetLabel(exeFile.getName()), true); |
163 |
164 ATFLaunchSupport.saveDebugTargetFromLaunchDelegate(target.getCoreModelTarget()); |
165 |
|
164 } catch (CoreException e) { |
166 } catch (CoreException e) { |
165 Session session = (Session)dsession; |
167 Session session = (Session)dsession; |
166 session.cleanupAfterLaunchFailure(); |
168 session.cleanupAfterLaunchFailure(); |
167 throw e; |
169 throw e; |
168 } catch (Exception e) { |
170 } catch (Exception e) { |