Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorJohn Cortell2010-04-06 19:32:14 +0000
committerJohn Cortell2010-04-06 19:32:14 +0000
commit57c6ba5fec251d7f649ff7e56a540bc905377cb4 (patch)
treefdbd8ef648818191d6bc437373b24d1b53bd4a02 /dsf
parentcdb45fd02ad8fedd6b093c9c19327c301a63770e (diff)
downloadorg.eclipse.cdt-57c6ba5fec251d7f649ff7e56a540bc905377cb4.tar.gz
org.eclipse.cdt-57c6ba5fec251d7f649ff7e56a540bc905377cb4.tar.xz
org.eclipse.cdt-57c6ba5fec251d7f649ff7e56a540bc905377cb4.zip
[248587] Support "Event' Breakpoints
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java5
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/MessagesForLaunchVM.java1
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/messages.properties3
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRunControl.java6
4 files changed, 13 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java
index 8750303b51e..540f45ac7d6 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java
@@ -72,7 +72,12 @@ public class ExecutionContextLabelText extends LabelText {
reasonLabel = MessagesForLaunchVM.State_change_reason__User_request__label;
} else if (StateChangeReason.WATCHPOINT.name().equals(reason)) {
reasonLabel = MessagesForLaunchVM.State_change_reason__Watchpoint__label;
+ } else if (StateChangeReason.EVENT_BREAKPOINT.name().equals(reason)) {
+ reasonLabel = MessagesForLaunchVM.State_change_reason__EventBreakpoint__label;
+ } else {
+ assert false : "unexpected state change reason: " + reason; //$NON-NLS-1$
}
+
return reasonLabel;
} else if ( ILaunchVMConstants.PROP_STATE_CHANGE_DETAILS.equals(propertyName) ) {
return properties.get(propertyName);
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/MessagesForLaunchVM.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/MessagesForLaunchVM.java
index 0a76995a03f..0c9a4a4f4bd 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/MessagesForLaunchVM.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/MessagesForLaunchVM.java
@@ -51,4 +51,5 @@ public class MessagesForLaunchVM extends NLS {
public static String State_change_reason__Shared_lib__label;
public static String State_change_reason__Error__label;
public static String State_change_reason__Evaluation__label;
+ public static String State_change_reason__EventBreakpoint__label;
}
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/messages.properties b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/messages.properties
index 7cef5597a9a..b41bebc7020 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/messages.properties
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/messages.properties
@@ -66,4 +66,5 @@ State_change_reason__Watchpoint__label = Watchpoint
State_change_reason__Signal__label = Signal
State_change_reason__Shared_lib__label = Shared Library
State_change_reason__Error__label = Error
-State_change_reason__Evaluation__label = Evaluation \ No newline at end of file
+State_change_reason__Evaluation__label = Evaluation
+State_change_reason__EventBreakpoint__label = Event Breakpoint \ No newline at end of file
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRunControl.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRunControl.java
index 5fa6ebaa8c5..5abb794c252 100644
--- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRunControl.java
+++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/service/IRunControl.java
@@ -46,7 +46,11 @@ public interface IRunControl extends IDsfService
public interface IContainerDMContext extends IExecutionDMContext {}
/** Flag indicating reason context state change. */
- public enum StateChangeReason { UNKNOWN, USER_REQUEST, STEP, BREAKPOINT, EXCEPTION, CONTAINER, WATCHPOINT, SIGNAL, SHAREDLIB, ERROR, EVALUATION };
+ public enum StateChangeReason {
+ UNKNOWN, USER_REQUEST, STEP, BREAKPOINT, EXCEPTION, CONTAINER, WATCHPOINT, SIGNAL, SHAREDLIB, ERROR, EVALUATION,
+
+ /** @since 2.1 */
+ EVENT_BREAKPOINT };
/**
* Indicates that the given thread has suspended.

Back to the top