mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 515756: Allow extending classes to provide getFilterExtension
This affects the synchronizer as it now should defer to the manager to get the filter extension, instead of trying to load it directly. Change-Id: I0e646f115ba089453c56f2cc356a4e0a99a1a3b7 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
This commit is contained in:
parent
375c3c6e50
commit
a797534968
1 changed files with 3 additions and 6 deletions
|
@ -32,7 +32,6 @@ import org.eclipse.cdt.debug.core.CDIDebugModel;
|
||||||
import org.eclipse.cdt.debug.core.breakpointactions.BreakpointActionManager;
|
import org.eclipse.cdt.debug.core.breakpointactions.BreakpointActionManager;
|
||||||
import org.eclipse.cdt.debug.core.model.ICAddressBreakpoint;
|
import org.eclipse.cdt.debug.core.model.ICAddressBreakpoint;
|
||||||
import org.eclipse.cdt.debug.core.model.ICBreakpoint;
|
import org.eclipse.cdt.debug.core.model.ICBreakpoint;
|
||||||
import org.eclipse.cdt.debug.core.model.ICBreakpointExtension;
|
|
||||||
import org.eclipse.cdt.debug.core.model.ICBreakpointType;
|
import org.eclipse.cdt.debug.core.model.ICBreakpointType;
|
||||||
import org.eclipse.cdt.debug.core.model.ICDynamicPrintf;
|
import org.eclipse.cdt.debug.core.model.ICDynamicPrintf;
|
||||||
import org.eclipse.cdt.debug.core.model.ICFunctionBreakpoint;
|
import org.eclipse.cdt.debug.core.model.ICFunctionBreakpoint;
|
||||||
|
@ -335,9 +334,7 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI
|
||||||
try {
|
try {
|
||||||
String threadId = data.getThreadId();
|
String threadId = data.getThreadId();
|
||||||
if (!threadId.equals("0")) { //$NON-NLS-1$
|
if (!threadId.equals("0")) { //$NON-NLS-1$
|
||||||
IDsfBreakpointExtension bpExtension =
|
IDsfBreakpointExtension bpExtension = fBreakpointsManager.getFilterExtension((ICBreakpoint)plBpt);
|
||||||
(IDsfBreakpointExtension)((ICBreakpoint)plBpt).getExtension(
|
|
||||||
MIBreakpointsManager.GDB_DEBUG_MODEL_ID, ICBreakpointExtension.class);
|
|
||||||
|
|
||||||
IMIProcesses processes = getServicesTracker().getService(IMIProcesses.class);
|
IMIProcesses processes = getServicesTracker().getService(IMIProcesses.class);
|
||||||
if (processes == null) {
|
if (processes == null) {
|
||||||
|
@ -506,8 +503,8 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI
|
||||||
if (procDmc == null) {
|
if (procDmc == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
IDsfBreakpointExtension bpExtension = (IDsfBreakpointExtension)plBpt.getExtension(
|
IDsfBreakpointExtension bpExtension = fBreakpointsManager.getFilterExtension(plBpt);
|
||||||
MIBreakpointsManager.GDB_DEBUG_MODEL_ID, ICBreakpointExtension.class);
|
|
||||||
IExecutionDMContext[] execDMCs = bpExtension.getThreadFilters(contDMC);
|
IExecutionDMContext[] execDMCs = bpExtension.getThreadFilters(contDMC);
|
||||||
if (execDMCs == null) {
|
if (execDMCs == null) {
|
||||||
execDMCs = new IExecutionDMContext[0];
|
execDMCs = new IExecutionDMContext[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue