From ce09756dad15fe62a876377ec41d8548f0e6187d Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Wed, 2 May 2012 12:25:42 -0400 Subject: [PATCH] Bug 377447 - 'DsfTerminateCommand' doesn't wait for the session shutdown to complete Added a comment. --- .../dsf/gdb/internal/ui/actions/DsfTerminateCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/actions/DsfTerminateCommand.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/actions/DsfTerminateCommand.java index 904611a4b3b..9e48c88dd20 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/actions/DsfTerminateCommand.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/actions/DsfTerminateCommand.java @@ -76,7 +76,11 @@ public class DsfTerminateCommand implements ITerminateHandler { } } // Marking the request as cancelled will prevent the removal of - // the launch from the Debug view in case of "Terminate and Remove". + // the launch from the Debug view in case of "Terminate and Remove". + // This is important for multi-process sessions when "Terminate and Remove" + // is applied to one of the running processes. In this case the selected + // process will be terminated but the associated launch will not be removed + // from the Debug view. fRequest.setStatus(result ? Status.OK_STATUS : Status.CANCEL_STATUS); fRequest.done(); DsfSession.removeSessionEndedListener(WaitForTerminationJob.this);