Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2011-12-13 14:03:55 -0500
committerEugene Tarassov2011-12-13 14:03:55 -0500
commit81fbf4fda3d1cd157d33641c15972d8dd049c5be (patch)
tree9fae7a15c4d21f9948df1e9c462c88aa102c637c
parent3a495ec3da9a4ee3fb9e1db7a4b8dd3ccb887ba2 (diff)
downloadorg.eclipse.tcf.agent-81fbf4fda3d1cd157d33641c15972d8dd049c5be.tar.gz
org.eclipse.tcf.agent-81fbf4fda3d1cd157d33641c15972d8dd049c5be.tar.xz
org.eclipse.tcf.agent-81fbf4fda3d1cd157d33641c15972d8dd049c5be.zip
TCF Agent: fixed: Breakpoints service erroneously reports ACCESSMODE_CHANGE capability.
-rw-r--r--agent/tcf/framework/context.h3
-rw-r--r--agent/tcf/services/breakpoints.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/agent/tcf/framework/context.h b/agent/tcf/framework/context.h
index 8274b2fd..7ac0f1e9 100644
--- a/agent/tcf/framework/context.h
+++ b/agent/tcf/framework/context.h
@@ -451,7 +451,8 @@ struct ContextBreakpoint {
#define CTX_BP_ACCESS_DATA_READ 0x01
#define CTX_BP_ACCESS_DATA_WRITE 0x02
#define CTX_BP_ACCESS_INSTRUCTION 0x04
-#define CTX_BP_ACCESS_VIRTUAL 0x08
+#define CTX_BP_ACCESS_CHANGE 0x08
+#define CTX_BP_ACCESS_VIRTUAL 0x10
/*
* Return bitmask of supported CTX_BP_ACCESS_* values.
diff --git a/agent/tcf/services/breakpoints.c b/agent/tcf/services/breakpoints.c
index 46e830ee..c6f19e3e 100644
--- a/agent/tcf/services/breakpoints.c
+++ b/agent/tcf/services/breakpoints.c
@@ -2142,6 +2142,7 @@ static void command_get_capabilities(char * token, Channel * c) {
if (ctx != NULL) {
int md = CTX_BP_ACCESS_INSTRUCTION;
md |= context_get_supported_bp_access_types(ctx);
+ md &= ~CTX_BP_ACCESS_VIRTUAL;
write_stream(&c->out, ',');
json_write_string(&c->out, "AccessMode");
write_stream(&c->out, ':');

Back to the top