1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

[255968] The connect action was enabled after the inferior terminated on its own. It should only be enabled in the case of an attach session.

This commit is contained in:
Marc Khouzam 2008-11-20 14:19:33 +00:00
parent cc598ae2b2
commit 5614e9339a

View file

@ -154,7 +154,15 @@ public class GDBProcesses extends MIProcesses {
@Override
public void isDebuggerAttachSupported(IDMContext dmc, DataRequestMonitor<Boolean> rm) {
rm.setData(!fGdb.isConnected());
MIInferiorProcess inferiorProcess = fGdb.getInferiorProcess();
if (!fGdb.isConnected() &&
inferiorProcess != null &&
inferiorProcess.getState() != MIInferiorProcess.State.TERMINATED) {
rm.setData(true);
} else {
rm.setData(false);
}
rm.done();
}