|
Lines 14-25
Link Here
|
| 14 |
import org.eclipse.cdt.dsf.concurrent.RequestMonitor; |
14 |
import org.eclipse.cdt.dsf.concurrent.RequestMonitor; |
| 15 |
import org.eclipse.cdt.dsf.datamodel.DMContexts; |
15 |
import org.eclipse.cdt.dsf.datamodel.DMContexts; |
| 16 |
import org.eclipse.cdt.dsf.datamodel.IDMContext; |
16 |
import org.eclipse.cdt.dsf.datamodel.IDMContext; |
|
|
17 |
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext; |
| 17 |
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext; |
18 |
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext; |
| 18 |
import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin; |
19 |
import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin; |
| 19 |
import org.eclipse.cdt.dsf.gdb.service.command.IGDBControl; |
20 |
import org.eclipse.cdt.dsf.gdb.service.command.IGDBControl; |
| 20 |
import org.eclipse.cdt.dsf.mi.service.IMICommandControl; |
21 |
import org.eclipse.cdt.dsf.mi.service.IMICommandControl; |
| 21 |
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext; |
22 |
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext; |
| 22 |
import org.eclipse.cdt.dsf.mi.service.IMIProcessDMContext; |
23 |
import org.eclipse.cdt.dsf.mi.service.IMIProcessDMContext; |
|
|
24 |
import org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager; |
| 23 |
import org.eclipse.cdt.dsf.mi.service.command.CommandFactory; |
25 |
import org.eclipse.cdt.dsf.mi.service.command.CommandFactory; |
| 24 |
import org.eclipse.cdt.dsf.mi.service.command.output.MIAddInferiorInfo; |
26 |
import org.eclipse.cdt.dsf.mi.service.command.output.MIAddInferiorInfo; |
| 25 |
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; |
27 |
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; |
|
Lines 99-105
Link Here
|
| 99 |
@Override |
101 |
@Override |
| 100 |
protected void handleSuccess() { |
102 |
protected void handleSuccess() { |
| 101 |
rm.setData(containerDmc); |
103 |
rm.setData(containerDmc); |
| 102 |
rm.done(); |
104 |
|
|
|
105 |
MIBreakpointsManager bpmService = getServicesTracker().getService(MIBreakpointsManager.class); |
| 106 |
bpmService.startTrackingBreakpoints((IBreakpointsTargetDMContext)containerDmc, rm); |
| 103 |
} |
107 |
} |
| 104 |
}); |
108 |
}); |
| 105 |
} |
109 |
} |
|
Lines 123-128
Link Here
|
| 123 |
return; |
127 |
return; |
| 124 |
} |
128 |
} |
| 125 |
|
129 |
|
|
|
130 |
// khouzam should also remove this process from MIBreakpointsManager |
| 126 |
fCommandControl.queueCommand( |
131 |
fCommandControl.queueCommand( |
| 127 |
fCommandFactory.createMITargetDetach(controlDmc, containerDmc.getGroupId()), |
132 |
fCommandFactory.createMITargetDetach(controlDmc, containerDmc.getGroupId()), |
| 128 |
new DataRequestMonitor<MIInfo>(getExecutor(), rm) { |
133 |
new DataRequestMonitor<MIInfo>(getExecutor(), rm) { |