mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
[255968] The connect action was enabled after the inferior terminated on its own. It should only be enabled in the case of an attach session.
This commit is contained in:
parent
cc598ae2b2
commit
5614e9339a
1 changed files with 9 additions and 1 deletions
|
@ -154,7 +154,15 @@ public class GDBProcesses extends MIProcesses {
|
|||
|
||||
@Override
|
||||
public void isDebuggerAttachSupported(IDMContext dmc, DataRequestMonitor<Boolean> rm) {
|
||||
rm.setData(!fGdb.isConnected());
|
||||
MIInferiorProcess inferiorProcess = fGdb.getInferiorProcess();
|
||||
if (!fGdb.isConnected() &&
|
||||
inferiorProcess != null &&
|
||||
inferiorProcess.getState() != MIInferiorProcess.State.TERMINATED) {
|
||||
|
||||
rm.setData(true);
|
||||
} else {
|
||||
rm.setData(false);
|
||||
}
|
||||
rm.done();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue