Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-12-03 18:00:10 +0000
committerEugene Tarassov2013-12-03 18:00:10 +0000
commita59a4d794d802d23659fa59ab47db8aa3aee8a0c (patch)
tree7bffb57af9e7cddb1a5aa904b36ce3b2df38a637
parentcf386eb1768a02914c77166b091aa42f48c84d31 (diff)
downloadorg.eclipse.tcf-a59a4d794d802d23659fa59ab47db8aa3aee8a0c.tar.gz
org.eclipse.tcf-a59a4d794d802d23659fa59ab47db8aa3aee8a0c.tar.xz
org.eclipse.tcf-a59a4d794d802d23659fa59ab47db8aa3aee8a0c.zip
TCF Core: added definitions of new attributes of run control state: FuncCall and StepError
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ErrorReport.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java6
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java4
3 files changed, 9 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ErrorReport.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ErrorReport.java
index cd15d7a8b..23f8dad51 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ErrorReport.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ErrorReport.java
@@ -60,7 +60,7 @@ public class ErrorReport extends Exception implements IErrorReport {
return (String)attrs.get(ERROR_ALT_ORG);
}
- public Map<String, Object> getAttributes() {
+ public Map<String,Object> getAttributes() {
return attrs;
}
}
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java
index 3c2a0b94e..89b156220 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java
@@ -237,6 +237,12 @@ public interface IRunControl extends IService {
/** Object - error report that describes a reason why program counter of the context is not available */
STATE_PC_ERROR = "PCError",
+ /** Object - error report if last stepping operation failed to reach its destination */
+ STATE_STEP_ERROR = "StepError",
+
+ /** Boolean - true if the context is stopped by a function call injection */
+ STATE_FUNC_CALL = "FuncCall",
+
/** Boolean - true if the context is running in reverse */
STATE_REVERSING = "Reversing";
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java
index 70747d5c7..f3a8643eb 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFModel.java
@@ -386,7 +386,7 @@ public class TCFModel implements ITCFModel, IElementContentProvider, IElementLab
Map<String,Object> params, String[] suspended_ids) {
boolean func_call = false;
if (params != null) {
- Boolean b = (Boolean)params.get("FuncCall");
+ Boolean b = (Boolean)params.get(IRunControl.STATE_FUNC_CALL);
func_call = b != null && b.booleanValue();
}
int action_cnt = 0;
@@ -467,7 +467,7 @@ public class TCFModel implements ITCFModel, IElementContentProvider, IElementLab
public void contextSuspended(String id, String pc, String reason, Map<String,Object> params) {
boolean func_call = false;
if (params != null) {
- Boolean b = (Boolean)params.get("FuncCall");
+ Boolean b = (Boolean)params.get(IRunControl.STATE_FUNC_CALL);
func_call = b != null && b.booleanValue();
}
TCFNode node = getNode(id);

Back to the top