1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[261406] Fix GDBControl_7_0.isConnected() by checking for isAttachedSession()

This commit is contained in:
Marc Khouzam 2009-01-17 04:27:50 +00:00
parent c02370ee35
commit 3c0fa285d6

View file

@ -347,7 +347,8 @@ public class GDBControl_7_0 extends AbstractMIControl implements IGDBControl {
}
public boolean isConnected() {
return fInferiorProcess.getState() != MIInferiorProcess.State.TERMINATED && fConnected > 0;
return fInferiorProcess.getState() != MIInferiorProcess.State.TERMINATED &&
(!fMIBackend.getIsAttachSession() || fConnected > 0);
}
public void setConnected(boolean connected) {