1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Pass the MISession we'll need to know if we can suspend.

This commit is contained in:
Alain Magloire 2002-09-06 03:40:20 +00:00
parent 7edb51d4cc
commit 16b474f214
2 changed files with 6 additions and 2 deletions

View file

@ -44,7 +44,7 @@ public class CSession implements ICDISession, ICDISessionObject {
public CSession(MISession s, boolean attach) {
commonSetup(s);
configuration = new Configuration(attach);
configuration = new Configuration(s, attach);
}
public CSession(MISession s) {

View file

@ -6,6 +6,7 @@
package org.eclipse.cdt.debug.mi.core.cdi;
import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
import org.eclipse.cdt.debug.mi.core.MISession;
/**
* @author alain
@ -17,9 +18,11 @@ import org.eclipse.cdt.debug.core.cdi.ICDIConfiguration;
*/
public class Configuration implements ICDIConfiguration {
protected boolean fAttached;
MISession miSession;
public Configuration(boolean attached) {
public Configuration(MISession s, boolean attached) {
fAttached = attached;
miSession = s;
}
/**
* @see org.eclipse.cdt.debug.core.cdi.ICDIConfiguration#supportsBreakpoints()
@ -103,5 +106,6 @@ public class Configuration implements ICDIConfiguration {
*/
public boolean supportsTerminate() {
return fAttached ? false : true;
}
}