Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-04-18 04:04:58 +0000
committerEugene Tarassov2012-04-18 04:04:58 +0000
commit526dce3f905779014a10d847f02e2372517d46bb (patch)
tree8af5ef5b6e766b34e7f86c8f8f7d5d1b57f7e908
parentceceaefef580ae2832578df848fe2848f904ecee (diff)
downloadorg.eclipse.tcf.agent-526dce3f905779014a10d847f02e2372517d46bb.tar.gz
org.eclipse.tcf.agent-526dce3f905779014a10d847f02e2372517d46bb.tar.xz
org.eclipse.tcf.agent-526dce3f905779014a10d847f02e2372517d46bb.zip
TCF Agent: fixed: assert can fail if a process exits while it is suspended to replant breakpoints
-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 7fefd16e..2ecf158b 100644
--- a/agent/tcf/services/breakpoints.c
+++ b/agent/tcf/services/breakpoints.c
@@ -397,7 +397,7 @@ static void flush_instructions(void) {
l = l->next;
if (bi->valid) continue;
while (i < bi->ref_cnt) {
- if (bi->refs[i].cnt == 0) {
+ if (bi->refs[i].cnt == 0 || bi->refs[i].ctx->exiting) {
bi->refs[i].bp->instruction_cnt--;
bi->refs[i].bp->status_changed = 1;
context_unlock(bi->refs[i].ctx);

Back to the top