Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Chouinard2009-01-26 15:41:55 +0000
committerFrancois Chouinard2009-01-26 15:41:55 +0000
commit1688f6c4d1c33adc275e29125479db91d642a3f3 (patch)
treeec252783c24cbff248ed4601058b0f7fa3b4e43b /dsf-gdb
parent524acc90283174cadd21055d05e71982b491b4c3 (diff)
downloadorg.eclipse.cdt-1688f6c4d1c33adc275e29125479db91d642a3f3.tar.gz
org.eclipse.cdt-1688f6c4d1c33adc275e29125479db91d642a3f3.tar.xz
org.eclipse.cdt-1688f6c4d1c33adc275e29125479db91d642a3f3.zip
Fix for Bug262244
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java25
1 files changed, 16 insertions, 9 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
index 9cf21d0b5ed..39f46f682f4 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
@@ -56,6 +56,7 @@ import org.eclipse.cdt.dsf.mi.service.MIBreakpoints.BreakpointAddedEvent;
import org.eclipse.cdt.dsf.mi.service.MIBreakpoints.BreakpointRemovedEvent;
import org.eclipse.cdt.dsf.mi.service.MIBreakpoints.BreakpointUpdatedEvent;
import org.eclipse.cdt.dsf.mi.service.MIBreakpoints.MIBreakpointDMContext;
+import org.eclipse.cdt.dsf.mi.service.MIRunControl.SuspendedEvent;
import org.eclipse.cdt.dsf.mi.service.breakpoint.actions.BreakpointActionAdapter;
import org.eclipse.cdt.dsf.mi.service.command.events.MIBreakpointHitEvent;
import org.eclipse.cdt.dsf.mi.service.command.events.MIGDBExitEvent;
@@ -1202,15 +1203,21 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
// Breakpoint actions
//-------------------------------------------------------------------------
- @DsfServiceEventHandler
- public void eventDispatched(MIBreakpointHitEvent e) {
- performBreakpointAction(e.getDMContext(), e.getNumber());
- }
-
- @DsfServiceEventHandler
- public void eventDispatched(MIWatchpointTriggerEvent e) {
- performBreakpointAction(e.getDMContext(), e.getNumber());
- }
+ @DsfServiceEventHandler
+ public void eventDispatched(SuspendedEvent e) {
+
+ if (e.getMIEvent() instanceof MIBreakpointHitEvent) {
+ MIBreakpointHitEvent evt = (MIBreakpointHitEvent) e.getMIEvent();
+ performBreakpointAction(evt.getDMContext(), evt.getNumber());
+ return;
+ }
+
+ if (e.getMIEvent() instanceof MIWatchpointTriggerEvent) {
+ MIWatchpointTriggerEvent evt = (MIWatchpointTriggerEvent) e.getMIEvent();
+ performBreakpointAction(evt.getDMContext(), evt.getNumber());
+ return;
+ }
+ }
private void performBreakpointAction(final IDMContext context, int number) {
// Identify the platform breakpoint

Back to the top