# HG changeset patch # User stechong # Date 1267047519 21600 # Node ID 6f8730b7758deff2f3628ba1b6ab74a034629139 # Parent 996f2f4e33c7995ad6ba676f13bb30ebac9148a5 Fix for Bug 10689, binaries disappearing when added to the Executables view. diff -r 996f2f4e33c7 -r 6f8730b7758d cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java --- a/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java Wed Feb 10 13:34:53 2010 -0600 +++ b/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java Wed Feb 24 15:38:39 2010 -0600 @@ -104,7 +104,10 @@ // store the list of executables for this project synchronized (executablesMap) { - executablesMap.put(project, provider.getExecutables(project, subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE))); + List executables = provider.getExecutables(project, subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE)); + if (executables != null) { + executablesMap.put(project, executables); + } } } } diff -r 996f2f4e33c7 -r 6f8730b7758d cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IProjectExecutablesProvider.java --- a/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IProjectExecutablesProvider.java Wed Feb 10 13:34:53 2010 -0600 +++ b/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/IProjectExecutablesProvider.java Wed Feb 24 15:38:39 2010 -0600 @@ -38,7 +38,7 @@ * Get the list of executables for the given project * @param project the project to get the executables for * @param monitor progress monitor - * @return the list of executables (which may be empty) + * @return the list of executables (which may be empty), or null if request is cancelled */ List getExecutables(IProject project, IProgressMonitor monitor); diff -r 996f2f4e33c7 -r 6f8730b7758d cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java --- a/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java Wed Feb 10 13:34:53 2010 -0600 +++ b/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java Wed Feb 24 15:38:39 2010 -0600 @@ -55,7 +55,7 @@ for (IBinary binary : binaries) { if (progress.isCanceled()) { - break; + return null; } if (binary.isExecutable() || binary.isSharedLib()) {