1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

[259765] - applied patch for better support of adding breakpoints

This commit is contained in:
Alena Laskavaia 2009-01-05 15:13:44 +00:00
parent e4581eabb5
commit c2b7d5be40

View file

@ -32,6 +32,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIEventBreakpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDIExceptionpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDIFunctionBreakpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDILineBreakpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
import org.eclipse.cdt.debug.core.cdi.model.ICDIWatchpoint;
import org.eclipse.cdt.debug.core.model.ICBreakpointType;
import org.eclipse.cdt.debug.mi.core.MIException;
@ -89,7 +90,7 @@ public class BreakpointManager extends Manager {
allowInterrupt = true;
}
synchronized List getBreakpointsList(Target target) {
synchronized List getBreakpointsList(ICDITarget target) {
List bList = (List)breakMap.get(target);
if (bList == null) {
bList = Collections.synchronizedList(new ArrayList());
@ -534,11 +535,9 @@ public class BreakpointManager extends Manager {
* @param bkpt
*/
public void addToBreakpointList(Breakpoint bkpt) {
List bList = (List)breakMap.get(bkpt.getTarget());
if (bList != null) {
List bList = getBreakpointsList(bkpt.getTarget());
bList.add(bkpt);
}
}
public void deleteAllBreakpoints(Target target) throws CDIException {
List bList = (List)breakMap.get(target);