mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +02:00
Pass the MISession we'll need to know if we can suspend.
This commit is contained in:
parent
7edb51d4cc
commit
16b474f214
2 changed files with 6 additions and 2 deletions
|
@ -44,7 +44,7 @@ public class CSession implements ICDISession, ICDISessionObject {
|
||||||
|
|
||||||
public CSession(MISession s, boolean attach) {
|
public CSession(MISession s, boolean attach) {
|
||||||
commonSetup(s);
|
commonSetup(s);
|
||||||
configuration = new Configuration(attach);
|
configuration = new Configuration(s, attach);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CSession(MISession s) {
|
public CSession(MISession s) {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
package org.eclipse.cdt.debug.mi.core.cdi;
|
package org.eclipse.cdt.debug.mi.core.cdi;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
|
import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
|
||||||
|
import org.eclipse.cdt.debug.mi.core.MISession;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author alain
|
* @author alain
|
||||||
|
@ -17,9 +18,11 @@ import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
|
||||||
*/
|
*/
|
||||||
public class Configuration implements ICDIConfiguration {
|
public class Configuration implements ICDIConfiguration {
|
||||||
protected boolean fAttached;
|
protected boolean fAttached;
|
||||||
|
MISession miSession;
|
||||||
|
|
||||||
public Configuration(boolean attached) {
|
public Configuration(MISession s, boolean attached) {
|
||||||
fAttached = attached;
|
fAttached = attached;
|
||||||
|
miSession = s;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIConfiguration#supportsBreakpoints()
|
* @see org.eclipse.cdt.debug.core.cdi.ICDIConfiguration#supportsBreakpoints()
|
||||||
|
@ -103,5 +106,6 @@ public class Configuration implements ICDIConfiguration {
|
||||||
*/
|
*/
|
||||||
public boolean supportsTerminate() {
|
public boolean supportsTerminate() {
|
||||||
return fAttached ? false : true;
|
return fAttached ? false : true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue