summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjguiban2013-09-20 09:22:44 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-09-20 16:19:39 (EDT)
commite45b93c7bc9065ec533aba02404494136d6d98b4 (patch)
tree0c5a4885ab69e5842058957876ce9859defed05f
parentb33d8fd51d2a9d747bc6e1756f37156807db30cc (diff)
downloadorg.eclipse.tcf.agent-e45b93c7bc9065ec533aba02404494136d6d98b4.zip
org.eclipse.tcf.agent-e45b93c7bc9065ec533aba02404494136d6d98b4.tar.gz
org.eclipse.tcf.agent-e45b93c7bc9065ec533aba02404494136d6d98b4.tar.bz2
Extend RunControl getISA to context with no staterefs/changes/43/16643/2
The RunControl command "getISA" is not supported for context that has no state. RunControl context associated to Memory context are often context with no state and Memory context are used when disassembling memory. So, "RunControl getISA" should be supported, even for context with "no state". Signed-off-by: jguiban <jerome.guiban@windriver.com>
-rw-r--r--agent/tcf/services/runctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/runctrl.c b/agent/tcf/services/runctrl.c
index 7741959..75868e5 100644
--- a/agent/tcf/services/runctrl.c
+++ b/agent/tcf/services/runctrl.c
@@ -621,7 +621,7 @@ static void command_get_isa_cache_client(void * x) {
ctx = id2ctx(args->id);
memset(&isa, 0, sizeof(isa));
- if (ctx == NULL || !context_has_state(ctx)) err = ERR_INV_CONTEXT;
+ if (ctx == NULL) err = ERR_INV_CONTEXT;
else if (ctx->exited) err = ERR_ALREADY_EXITED;
else if (context_get_isa(ctx, args->addr, &isa) < 0) err = errno;