1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00
cdt/dsf-gdb
Marc Khouzam ffffd11890 Bug 456116 - Cannot use class fields in GdbLaunchDelegate
The protected method GdbLaunchDelegate.cleanupLaunch() has been removed.
It has been replaced with GdbLaunchDelegate.cleanupLaunch(ILaunch).

The complexity about not using a class field in GdbLaunchDelegate is that
throughout the process of launching a session, we must be ready to cleanup
the GdbLaunch object.  The problem is that the platform does not provide
that launch object in the methods preLaunchCheck() and finalLaunchCheck(),
so we needed to store the launch object in a field.

This patch delays the call to GdbLaunch.initialize() so that we don't need
to cleanup the launch object if preLaunchCheck() and finalLaunchCheck()
abort the launch.  One hurdle was that we still needed to create the DsfSession
when constructing GdbLaunch, so still needed to clean it up.  This patch adds
a check in GdbLaunch itself, when the launch is removed, to cleanup any
lingering DsfSession automatically.

I've tested every path that aborts the launch in GdbLaunchDelegate and
confirmed that things are properly disposed of in every case.

Change-Id: Ie2981a843917b464f1785a477871073227e027c3
2016-02-22 13:16:07 -05:00
..
org.eclipse.cdt.dsf.gdb Bug 456116 - Cannot use class fields in GdbLaunchDelegate 2016-02-22 13:16:07 -05:00
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.dsf.gdb.tests Update copyright dates 2016-02-11 01:50:14 -05:00
org.eclipse.cdt.dsf.gdb.ui Bug 478740: Cleanup debugger tab 2016-02-22 09:48:11 -05:00
org.eclipse.cdt.examples.dsf.gdb Update copyright dates 2016-02-11 01:50:14 -05:00
org.eclipse.cdt.gnu.dsf-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gnu.dsf.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gnu.multicorevisualizer-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.tests.dsf.gdb Bug 487762 - [tests] MIRegistersTests # frameSpecificValues() - fix 2016-02-15 10:01:41 -05:00