Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2017-04-25 07:08:22 -0400
committerJonah Graham2017-04-25 07:08:22 -0400
commita79753496813f5cbf133afe8f4206d5a5db01f4d (patch)
tree41fad3871ebbd616c94a0dc1ff2726415af153df /dsf-gdb
parent375c3c6e50c1c602d42ab0a2a78a05fd29e2978c (diff)
downloadorg.eclipse.cdt-a79753496813f5cbf133afe8f4206d5a5db01f4d.tar.gz
org.eclipse.cdt-a79753496813f5cbf133afe8f4206d5a5db01f4d.tar.xz
org.eclipse.cdt-a79753496813f5cbf133afe8f4206d5a5db01f4d.zip
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>
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java
index 8aaa1b18b9..b5c7c4606f 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java
@@ -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.model.ICAddressBreakpoint;
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.ICDynamicPrintf;
import org.eclipse.cdt.debug.core.model.ICFunctionBreakpoint;
@@ -335,9 +334,7 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI
try {
String threadId = data.getThreadId();
if (!threadId.equals("0")) { //$NON-NLS-1$
- IDsfBreakpointExtension bpExtension =
- (IDsfBreakpointExtension)((ICBreakpoint)plBpt).getExtension(
- MIBreakpointsManager.GDB_DEBUG_MODEL_ID, ICBreakpointExtension.class);
+ IDsfBreakpointExtension bpExtension = fBreakpointsManager.getFilterExtension((ICBreakpoint)plBpt);
IMIProcesses processes = getServicesTracker().getService(IMIProcesses.class);
if (processes == null) {
@@ -506,8 +503,8 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI
if (procDmc == null) {
return;
}
- IDsfBreakpointExtension bpExtension = (IDsfBreakpointExtension)plBpt.getExtension(
- MIBreakpointsManager.GDB_DEBUG_MODEL_ID, ICBreakpointExtension.class);
+ IDsfBreakpointExtension bpExtension = fBreakpointsManager.getFilterExtension(plBpt);
+
IExecutionDMContext[] execDMCs = bpExtension.getThreadFilters(contDMC);
if (execDMCs == null) {
execDMCs = new IExecutionDMContext[0];

Back to the top