1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 306552: DSF Debugger "disconnect" button is inactive for non-attach sessions even if "detach" command is supported by GDB.

This commit is contained in:
Marc Khouzam 2011-05-04 19:07:34 +00:00
parent eb723acf87
commit 15b027091d
2 changed files with 2 additions and 2 deletions

View file

@ -268,7 +268,7 @@ public class GDBProcesses extends MIProcesses implements IGDBProcesses {
@Override @Override
public void canDetachDebuggerFromProcess(IDMContext dmc, DataRequestMonitor<Boolean> rm) { public void canDetachDebuggerFromProcess(IDMContext dmc, DataRequestMonitor<Boolean> rm) {
if (fBackend.getIsAttachSession() && fConnected) { if (fConnected) {
rm.setData(true); rm.setData(true);
} else { } else {
rm.setData(false); rm.setData(false);

View file

@ -914,7 +914,7 @@ public class GDBProcesses_7_0 extends AbstractDsfService
/** @since 4.0 */ /** @since 4.0 */
protected boolean doCanDetachDebuggerFromProcess() { protected boolean doCanDetachDebuggerFromProcess() {
return fBackend.getIsAttachSession() && fNumConnected > 0; return fNumConnected > 0;
} }
public void canDetachDebuggerFromProcess(IDMContext dmc, DataRequestMonitor<Boolean> rm) { public void canDetachDebuggerFromProcess(IDMContext dmc, DataRequestMonitor<Boolean> rm) {