mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Make sure when something goes wrong before
getting out the launch sequence to terminate the session. * src/org/eclise/cdt/launch/internal/CoreFileLaunchDelegate.java * src/org/eclise/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
This commit is contained in:
parent
6ba0814133
commit
0e0f456412
3 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-06-08 Alain Magloire
|
||||||
|
Make sure when something goes wrong before
|
||||||
|
getting out the launch sequence to terminate the session.
|
||||||
|
|
||||||
|
* src/org/eclise/cdt/launch/internal/CoreFileLaunchDelegate.java
|
||||||
|
* src/org/eclise/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
|
||||||
|
|
||||||
2004-04-23 David Inglis
|
2004-04-23 David Inglis
|
||||||
|
|
||||||
fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=59680
|
fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=59680
|
||||||
|
|
|
@ -57,6 +57,13 @@ public class CoreFileLaunchDelegate extends AbstractCLaunchDelegate {
|
||||||
dsession = debugConfig.getDebugger().createCoreSession(config, exeFile, corefile);
|
dsession = debugConfig.getDebugger().createCoreSession(config, exeFile, corefile);
|
||||||
debugger = dsession.getSessionProcess();
|
debugger = dsession.getSessionProcess();
|
||||||
} catch (CDIException e) {
|
} catch (CDIException e) {
|
||||||
|
if (dsession != null) {
|
||||||
|
try {
|
||||||
|
dsession.terminate();
|
||||||
|
} catch (CDIException ex) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
}
|
||||||
abort(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
|
abort(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
if ( debugger != null ) {
|
if ( debugger != null ) {
|
||||||
|
|
|
@ -133,6 +133,13 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
exeFile);
|
exeFile);
|
||||||
}
|
}
|
||||||
} catch (CDIException e) {
|
} catch (CDIException e) {
|
||||||
|
if (dsession != null) {
|
||||||
|
try {
|
||||||
|
dsession.terminate();
|
||||||
|
} catch (CDIException ex) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
}
|
||||||
abort(LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
|
abort(LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue