Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-09-18 23:23:24 +0000
committerEugene Tarassov2014-09-18 23:23:24 +0000
commitf184e2f962d9d6aec6a57877db690c9849c5297f (patch)
tree55933adae7a41129d9c6e8fa8e9c6f1b70557dd7
parent221d77ee4469699ad0c6495af475b6f1095f1306 (diff)
downloadorg.eclipse.tcf.agent-f184e2f962d9d6aec6a57877db690c9849c5297f.tar.gz
org.eclipse.tcf.agent-f184e2f962d9d6aec6a57877db690c9849c5297f.tar.xz
org.eclipse.tcf.agent-f184e2f962d9d6aec6a57877db690c9849c5297f.zip
TCF Agent: fixed: breakpoint does not work if attribute "BreakpointType" is set to "Software".
"Hardware", "Auto" and empty settings work fine.
-rw-r--r--agent/tcf/services/breakpoints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/breakpoints.c b/agent/tcf/services/breakpoints.c
index 34f52b20..5bb84951 100644
--- a/agent/tcf/services/breakpoints.c
+++ b/agent/tcf/services/breakpoints.c
@@ -255,7 +255,7 @@ static unsigned get_bp_access_types(BreakpointInfo * bp, int virtual_addr) {
char * type = bp->type;
unsigned access_types = bp->access_mode;
if (access_types == 0 && (bp->file != NULL || bp->location != NULL)) access_types |= CTX_BP_ACCESS_INSTRUCTION;
- if (type != NULL && strcmp(type, "Software") == 0) access_types |= CTX_BP_ACCESS_SOFTWARE;
+ if (virtual_addr && type != NULL && strcmp(type, "Software") == 0) access_types |= CTX_BP_ACCESS_SOFTWARE;
if (virtual_addr) access_types |= CTX_BP_ACCESS_VIRTUAL;
return access_types;
}

Back to the top