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:
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) {
|
||||
commonSetup(s);
|
||||
configuration = new Configuration(attach);
|
||||
configuration = new Configuration(s, attach);
|
||||
}
|
||||
|
||||
public CSession(MISession s) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue