mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
Bug 239028
In my conversion of ContainerVMNode I forgot to add the check to make sure the inferior was still running. This check is now in GDBProcesses
This commit is contained in:
parent
a0ce9be8f4
commit
5272715f6d
2 changed files with 12 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class ContainerVMNode extends AbstractContainerVMNode
|
|||
handleFailedUpdate(update);
|
||||
return;
|
||||
}
|
||||
fillUpdateWithVMCs(update, getData());
|
||||
if (getData() != null) fillUpdateWithVMCs(update, getData());
|
||||
update.done();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.eclipse.dd.gdb.internal.GdbPlugin;
|
|||
import org.eclipse.dd.gdb.internal.provisional.service.command.GDBControl;
|
||||
import org.eclipse.dd.gdb.internal.provisional.service.command.GDBControl.SessionType;
|
||||
import org.eclipse.dd.mi.service.MIProcesses;
|
||||
import org.eclipse.dd.mi.service.command.MIInferiorProcess;
|
||||
import org.eclipse.dd.mi.service.command.commands.CLIMonitorListProcesses;
|
||||
import org.eclipse.dd.mi.service.command.output.CLIMonitorListProcessesInfo;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
@ -113,6 +114,16 @@ public class GDBProcesses extends MIProcesses {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getProcessesBeingDebugged(IDMContext dmc, DataRequestMonitor<IDMContext[]> rm) {
|
||||
MIInferiorProcess inferiorProcess = fGdb.getInferiorProcess();
|
||||
if (inferiorProcess != null && inferiorProcess.getState() != MIInferiorProcess.State.TERMINATED) {
|
||||
super.getProcessesBeingDebugged(dmc, rm);
|
||||
} else {
|
||||
rm.done();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getRunningProcesses(IDMContext dmc, final DataRequestMonitor<IProcessDMContext[]> rm) {
|
||||
if (fGdb.getSessionType() == SessionType.LOCAL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue