debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/SophiaSTILaunchDelegate.java
changeset 94 d74b720418db
parent 2 d760517a8095
equal deleted inserted replaced
92:cfa799aaafa1 94:d74b720418db
    36 import org.eclipse.jface.dialogs.MessageDialog;
    36 import org.eclipse.jface.dialogs.MessageDialog;
    37 import org.eclipse.swt.widgets.Display;
    37 import org.eclipse.swt.widgets.Display;
    38 
    38 
    39 import com.freescale.cdt.debug.cw.CWException;
    39 import com.freescale.cdt.debug.cw.CWException;
    40 import com.freescale.cdt.debug.cw.core.cdi.Session;
    40 import com.freescale.cdt.debug.cw.core.cdi.Session;
       
    41 import com.freescale.cdt.debug.cw.core.cdi.model.Target;
    41 import com.nokia.cdt.debug.cw.symbian.SettingsData;
    42 import com.nokia.cdt.debug.cw.symbian.SettingsData;
    42 import com.nokia.cdt.debug.cw.symbian.SymbianPlugin;
    43 import com.nokia.cdt.debug.cw.symbian.SymbianPlugin;
    43 
    44 
    44 import cwdbg.PreferenceConstants;
    45 import cwdbg.PreferenceConstants;
    45 
    46 
   105 								}
   106 								}
   106 								
   107 								
   107 								config = synchronizeWithProjectAccessPaths(project, config);
   108 								config = synchronizeWithProjectAccessPaths(project, config);
   108 								
   109 								
   109 								File wd = getWorkingDirectory(config);
   110 								File wd = getWorkingDirectory(config);
   110 								cwDebugSession.launchExecutable(launch, config, exeFile, otherExecutables, arguments, wd, getEnvironmentAsProperty(config), monitor, project, getTargetLabel(exeFile.getName()), true);
   111 								Target target = cwDebugSession.launchExecutable(launch, config, exeFile, otherExecutables, arguments, wd, getEnvironmentAsProperty(config), monitor, project, getTargetLabel(exeFile.getName()), true);
       
   112 								ATFLaunchSupport.saveDebugTargetFromLaunchDelegate(target.getCoreModelTarget());
   111 
   113 
   112 							} catch (CoreException e) {
   114 							} catch (CoreException e) {
   113 								Session session = (Session)dsession;
   115 								Session session = (Session)dsession;
   114 								session.cleanupAfterLaunchFailure();
   116 								session.cleanupAfterLaunchFailure();
   115 								throw e;
   117 								throw e;