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:
parent
c02370ee35
commit
3c0fa285d6
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue