|
Lines 20-25
Link Here
|
| 20 |
import java.util.List; |
20 |
import java.util.List; |
| 21 |
import java.util.Map; |
21 |
import java.util.Map; |
| 22 |
import java.util.Set; |
22 |
import java.util.Set; |
|
|
23 |
import java.util.Map.Entry; |
| 23 |
import java.util.concurrent.RejectedExecutionException; |
24 |
import java.util.concurrent.RejectedExecutionException; |
| 24 |
|
25 |
|
| 25 |
import org.eclipse.core.resources.IMarkerDelta; |
26 |
import org.eclipse.core.resources.IMarkerDelta; |
|
Lines 34-39
Link Here
|
| 34 |
import org.eclipse.dd.dsf.concurrent.RequestMonitor; |
35 |
import org.eclipse.dd.dsf.concurrent.RequestMonitor; |
| 35 |
import org.eclipse.dd.dsf.concurrent.ThreadSafe; |
36 |
import org.eclipse.dd.dsf.concurrent.ThreadSafe; |
| 36 |
import org.eclipse.dd.dsf.datamodel.DMContexts; |
37 |
import org.eclipse.dd.dsf.datamodel.DMContexts; |
|
|
38 |
import org.eclipse.dd.dsf.datamodel.IDMContext; |
| 37 |
import org.eclipse.dd.dsf.debug.internal.DsfDebugPlugin; |
39 |
import org.eclipse.dd.dsf.debug.internal.DsfDebugPlugin; |
| 38 |
import org.eclipse.dd.dsf.debug.service.IBreakpoints.IBreakpointDMContext; |
40 |
import org.eclipse.dd.dsf.debug.service.IBreakpoints.IBreakpointDMContext; |
| 39 |
import org.eclipse.dd.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext; |
41 |
import org.eclipse.dd.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext; |
|
Lines 882-885
Link Here
|
| 882 |
} |
884 |
} |
| 883 |
|
885 |
|
| 884 |
} |
886 |
} |
|
|
887 |
|
| 888 |
public void findPlatformBreakpoint(IBreakpointsTargetDMContext target, |
| 889 |
IBreakpointDMContext bdmc, DataRequestMonitor<IBreakpoint> dataRequestMonitor) { |
| 890 |
Map<IBreakpoint, List<IBreakpoints.IBreakpointDMContext>> platformBPs = fBreakpointDMContexts |
| 891 |
.get(target); |
| 892 |
|
| 893 |
dataRequestMonitor.setData(null); |
| 894 |
if (platformBPs != null) |
| 895 |
{ |
| 896 |
for(Entry<IBreakpoint, List<IBreakpointDMContext>> e: platformBPs.entrySet()) |
| 897 |
{ |
| 898 |
// Stop at the first occurrence |
| 899 |
if(e.getValue().contains(bdmc)) |
| 900 |
{ |
| 901 |
dataRequestMonitor.setData(e.getKey()); |
| 902 |
break; |
| 903 |
} |
| 904 |
} |
| 905 |
} |
| 906 |
dataRequestMonitor.done(); |
| 907 |
} |
| 885 |
} |
908 |
} |