Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2009-01-17 04:27:50 +0000
committerMarc Khouzam2009-01-17 04:27:50 +0000
commit3c0fa285d6e4d5476c6f7b3a907bf7eeeddf568d (patch)
tree8d7bc29e1e08fcca7d45ee57f96267a3ec4c3cee /dsf-gdb
parentc02370ee350de021c293e6b17a982f8e4f05ef0f (diff)
downloadorg.eclipse.cdt-3c0fa285d6e4d5476c6f7b3a907bf7eeeddf568d.tar.gz
org.eclipse.cdt-3c0fa285d6e4d5476c6f7b3a907bf7eeeddf568d.tar.xz
org.eclipse.cdt-3c0fa285d6e4d5476c6f7b3a907bf7eeeddf568d.zip
[261406] Fix GDBControl_7_0.isConnected() by checking for isAttachedSession()
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java
index 3e6ca48fa12..c156634d217 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java
@@ -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) {

Back to the top