diff options
author | Eugene Tarassov | 2014-09-18 23:23:24 +0000 |
---|---|---|
committer | Eugene Tarassov | 2014-09-18 23:23:24 +0000 |
commit | f184e2f962d9d6aec6a57877db690c9849c5297f (patch) | |
tree | 55933adae7a41129d9c6e8fa8e9c6f1b70557dd7 | |
parent | 221d77ee4469699ad0c6495af475b6f1095f1306 (diff) | |
download | org.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.c | 2 |
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; } |