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:
parent
eb723acf87
commit
15b027091d
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue