mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
[256798] No longer need to guard against a null serviceTracker since we properly handle services that have shutdown.
This commit is contained in:
parent
d05196d1bf
commit
78325314e3
3 changed files with 0 additions and 40 deletions
|
@ -555,14 +555,6 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
}
|
||||
|
||||
public void isDebuggerAttachSupported(IDMContext dmc, DataRequestMonitor<Boolean> rm) {
|
||||
// Until bug 256798 is fixed, the service tracker could be null
|
||||
if (getServicesTracker() == null) {
|
||||
// service is shutdown
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
|
||||
IGDBBackend backend = getServicesTracker().getService(IGDBBackend.class);
|
||||
rm.setData(backend.getIsAttachSession());
|
||||
rm.done();
|
||||
|
@ -590,14 +582,6 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
}
|
||||
|
||||
public void canDetachDebuggerFromProcess(IDMContext dmc, DataRequestMonitor<Boolean> rm) {
|
||||
// Until bug 256798 is fixed, the service tracker could be null
|
||||
if (getServicesTracker() == null) {
|
||||
// service is shutdown
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
|
||||
IGDBBackend backend = getServicesTracker().getService(IGDBBackend.class);
|
||||
rm.setData(backend.getIsAttachSession() && fCommandControl.isConnected());
|
||||
rm.done();
|
||||
|
|
|
@ -163,14 +163,6 @@ public class GDBRunControl extends MIRunControl {
|
|||
// A step return will always be done in the top stack frame.
|
||||
// If the top stack frame is the only stack frame, it does not make sense
|
||||
// to do a step return since GDB will reject it.
|
||||
|
||||
// Until bug 256798 is fixed, the service tracker could be null
|
||||
if (getServicesTracker() == null) {
|
||||
// service is shutdown
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
MIStack stackService = getServicesTracker().getService(MIStack.class);
|
||||
if (stackService != null) {
|
||||
// Check that the stack is at least two deep.
|
||||
|
|
|
@ -143,14 +143,6 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
// A step return will always be done in the top stack frame.
|
||||
// If the top stack frame is the only stack frame, it does not make sense
|
||||
// to do a step return since GDB will reject it.
|
||||
|
||||
// Until bug 256798 is fixed, the service tracker could be null
|
||||
if (getServicesTracker() == null) {
|
||||
// service is shutdown
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
MIStack stackService = getServicesTracker().getService(MIStack.class);
|
||||
if (stackService != null) {
|
||||
// Check that the stack is at least two deep.
|
||||
|
@ -190,14 +182,6 @@ public class GDBRunControl_7_0 extends MIRunControl implements IReverseRunContro
|
|||
// A step return will always be done in the top stack frame.
|
||||
// If the top stack frame is the only stack frame, it does not make sense
|
||||
// to do a step return since GDB will reject it.
|
||||
|
||||
// Until bug 256798 is fixed, the service tracker could be null
|
||||
if (getServicesTracker() == null) {
|
||||
// service is shutdown
|
||||
rm.setData(false);
|
||||
rm.done();
|
||||
return;
|
||||
}
|
||||
MIStack stackService = getServicesTracker().getService(MIStack.class);
|
||||
if (stackService != null) {
|
||||
// Check that the stack is at least two deep.
|
||||
|
|
Loading…
Add table
Reference in a new issue