1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00
Find a file
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
build Incremented version of org.eclipse.cdt.core to 6.0. 2016-02-17 10:28:26 -08:00
codan Update copyright dates 2016-02-11 01:50:14 -05:00
core Bug 371839 - Highlighting of overloaded operator in macro expansion 2016-02-22 01:10:26 -05:00
cross Update copyright dates 2016-02-11 01:50:14 -05:00
debug Cosmetics 2016-02-22 10:46:43 -05:00
doc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
dsf Bug 487920 Check if widget is disposed before enable it 2016-02-17 10:27:12 -05:00
dsf-gdb Bug 456116 - Cannot use class fields in GdbLaunchDelegate 2016-02-22 13:16:07 -05:00
jtag Update copyright dates 2016-02-11 01:50:14 -05:00
launch Incremented version of org.eclipse.cdt.core to 6.0. 2016-02-17 10:28:26 -08:00
llvm Missing copyright header. 2016-02-01 12:47:41 -05:00
lrparser Removed INodeFactory.newTranslationUnit() method. 2016-02-17 16:44:35 -08:00
memory Bug 354754 - [Memory Browser]Changing the memory space doesn't update 2016-02-16 06:42:36 -05:00
native/org.eclipse.cdt.native.serial Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
p2 Missing copyright header. 2016-02-01 12:47:41 -05:00
qt qt core: prevent exceptions when deleting closed project 2016-02-18 12:15:52 -05:00
releng Updating to latest orbit 2016-02-05 10:06:51 -05:00
remote Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
testsrunner Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
toolchains/arduino Missing copyright header. 2016-02-01 12:47:41 -05:00
upc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
util Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
visualizer Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
windows Missing copyright header. 2016-02-01 12:47:41 -05:00
xlc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00