From b6d9b58b4c75cd5894d54869b1bf1a29b3063657 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Tue, 27 Aug 2002 21:04:42 +0000 Subject: [PATCH] Added new interfaces to cover the suspend event reasons for breakpoints and watchpoints. --- .../cdt/debug/core/cdi/ICDIBreakpointHit.java | 26 +++++++++++++ .../debug/core/cdi/ICDIWatchpointScope.java | 25 ++++++++++++ .../debug/core/cdi/ICDIWatchpointTrigger.java | 39 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointHit.java create mode 100644 debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointScope.java create mode 100644 debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointTrigger.java diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointHit.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointHit.java new file mode 100644 index 00000000000..e0ca33800e6 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIBreakpointHit.java @@ -0,0 +1,26 @@ +/* + *(c) Copyright QNX Software Systems Ltd. 2002. + * All Rights Reserved. + * + */ + +package org.eclipse.cdt.debug.core.cdi; + +import org.eclipse.cdt.debug.core.cdi.model.ICDIBreakpoint; + +/** + * + * Represents an information provided by the session when the program + * stopped by a breakpoint. + * + * @since Aug 27, 2002 + */ +public interface ICDIBreakpointHit extends ICDISessionObject +{ + /** + * Returns the breakpoint that stopped the program. + * + * @return the breakpoint that stopped the program + */ + ICDIBreakpoint getBreakpoint(); +} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointScope.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointScope.java new file mode 100644 index 00000000000..05a1d202741 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointScope.java @@ -0,0 +1,25 @@ +/* + *(c) Copyright QNX Software Systems Ltd. 2002. + * All Rights Reserved. + * + */ +package org.eclipse.cdt.debug.core.cdi; + +import org.eclipse.cdt.debug.core.cdi.model.ICDIWatchpoint; + +/** + * + * Represents an information provided by the session when a watchpoint + * is going out of scope. + * + * @since Aug 27, 2002 + */ +public interface ICDIWatchpointScope extends ICDISessionObject +{ + /** + * Returns the out of scope watchpoint. + * + * @return the watchpoint + */ + ICDIWatchpoint getWatchpoint(); +} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointTrigger.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointTrigger.java new file mode 100644 index 00000000000..5a2af67b592 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIWatchpointTrigger.java @@ -0,0 +1,39 @@ +/* + *(c) Copyright QNX Software Systems Ltd. 2002. + * All Rights Reserved. + * + */ +package org.eclipse.cdt.debug.core.cdi; + +import org.eclipse.cdt.debug.core.cdi.model.ICDIWatchpoint; + +/** + * + * Represents an information provided by the session when a watchpoint + * is triggered. + * + * @since Aug 27, 2002 + */ +public interface ICDIWatchpointTrigger extends ICDISessionObject +{ + /** + * Returns the triggered watchpoint. + * + * @return the triggered watchpoint + */ + ICDIWatchpoint getWatchpoint(); + + /** + * Returns the old value of the watching expression. + * + * @return the old value of the watching expression + */ + String getOldValue(); + + /** + * Returns the new value of the watching expression. + * + * @return the new value of the watching expression + */ + String getNewValue(); +}