mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
[259765] - applied patch for better support of adding breakpoints
This commit is contained in:
parent
e4581eabb5
commit
c2b7d5be40
1 changed files with 4 additions and 5 deletions
|
@ -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.ICDIExceptionpoint;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIFunctionBreakpoint;
|
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.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.cdi.model.ICDIWatchpoint;
|
||||||
import org.eclipse.cdt.debug.core.model.ICBreakpointType;
|
import org.eclipse.cdt.debug.core.model.ICBreakpointType;
|
||||||
import org.eclipse.cdt.debug.mi.core.MIException;
|
import org.eclipse.cdt.debug.mi.core.MIException;
|
||||||
|
@ -89,7 +90,7 @@ public class BreakpointManager extends Manager {
|
||||||
allowInterrupt = true;
|
allowInterrupt = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized List getBreakpointsList(Target target) {
|
synchronized List getBreakpointsList(ICDITarget target) {
|
||||||
List bList = (List)breakMap.get(target);
|
List bList = (List)breakMap.get(target);
|
||||||
if (bList == null) {
|
if (bList == null) {
|
||||||
bList = Collections.synchronizedList(new ArrayList());
|
bList = Collections.synchronizedList(new ArrayList());
|
||||||
|
@ -534,11 +535,9 @@ public class BreakpointManager extends Manager {
|
||||||
* @param bkpt
|
* @param bkpt
|
||||||
*/
|
*/
|
||||||
public void addToBreakpointList(Breakpoint bkpt) {
|
public void addToBreakpointList(Breakpoint bkpt) {
|
||||||
List bList = (List)breakMap.get(bkpt.getTarget());
|
List bList = getBreakpointsList(bkpt.getTarget());
|
||||||
if (bList != null) {
|
|
||||||
bList.add(bkpt);
|
bList.add(bkpt);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void deleteAllBreakpoints(Target target) throws CDIException {
|
public void deleteAllBreakpoints(Target target) throws CDIException {
|
||||||
List bList = (List)breakMap.get(target);
|
List bList = (List)breakMap.get(target);
|
||||||
|
|
Loading…
Add table
Reference in a new issue