Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2017-07-21 14:05:46 -0400
committerEugene Tarassov2017-07-21 14:05:46 -0400
commit8f6d7e45fdd9a28f49dc1f9c49d49a7a1984ebc3 (patch)
tree9e8293f088d89d9b01f438a920846c72b3d9b554
parentb06ce06e215988c2500df95fd482870c7e2d0738 (diff)
downloadorg.eclipse.tcf.agent-8f6d7e45fdd9a28f49dc1f9c49d49a7a1984ebc3.tar.gz
org.eclipse.tcf.agent-8f6d7e45fdd9a28f49dc1f9c49d49a7a1984ebc3.tar.xz
org.eclipse.tcf.agent-8f6d7e45fdd9a28f49dc1f9c49d49a7a1984ebc3.zip
TCF Agent: new function in Run Control service API: get_context_state_name()
-rw-r--r--agent/tcf/services/runctrl.c5
-rw-r--r--agent/tcf/services/runctrl.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/agent/tcf/services/runctrl.c b/agent/tcf/services/runctrl.c
index 24f0eb47..fadf21b9 100644
--- a/agent/tcf/services/runctrl.c
+++ b/agent/tcf/services/runctrl.c
@@ -2651,6 +2651,11 @@ void set_context_state_name(Context * ctx, const char * name) {
}
}
+const char * get_context_state_name(Context * ctx) {
+ ContextExtensionRC * ext = EXT(ctx);
+ return ext->state_name;
+}
+
int is_run_ctrl_idle(void) {
if (safe_event_list == NULL && run_ctrl_lock_cnt == 0 &&
run_safe_events_posted == 0 && sync_run_state_event_posted == 0) {
diff --git a/agent/tcf/services/runctrl.h b/agent/tcf/services/runctrl.h
index 343c63b5..7229e210 100644
--- a/agent/tcf/services/runctrl.h
+++ b/agent/tcf/services/runctrl.h
@@ -191,6 +191,7 @@ extern int get_stepping_mode(Context * ctx);
* The name is only applicable if the context is not intercepted.
*/
extern void set_context_state_name(Context * ctx, const char * name);
+extern const char * get_context_state_name(Context * ctx);
/**
* Check that no safe events are pending, run control is not locked,

Back to the top