diff options
author | eutarass | 2010-09-07 17:33:04 +0000 |
---|---|---|
committer | eutarass | 2010-09-07 17:33:04 +0000 |
commit | 5ded5b0ac6258f390e6bf04df7f78071446e03d5 (patch) | |
tree | f7179253e072a15c25bbc0be74c708d492f8066e | |
parent | 0c6b2fc65cc46d7a49014c713554029e70faf282 (diff) | |
download | org.eclipse.tcf.agent-5ded5b0ac6258f390e6bf04df7f78071446e03d5.tar.gz org.eclipse.tcf.agent-5ded5b0ac6258f390e6bf04df7f78071446e03d5.tar.xz org.eclipse.tcf.agent-5ded5b0ac6258f390e6bf04df7f78071446e03d5.zip |
TCF Agent: Added couple of asserts
-rw-r--r-- | framework/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/context.c b/framework/context.c index 25c647a0..276c214e 100644 --- a/framework/context.c +++ b/framework/context.c @@ -178,6 +178,7 @@ void send_context_stopped_event(Context * ctx) { assert(ctx->ref_count > 0); assert(ctx->stopped != 0); assert(!ctx->event_notification); + assert(context_has_state(ctx)); ctx->event_notification = 1; for (i = 0; i < listener_cnt; i++) { Listener * l = listeners + i; @@ -191,6 +192,7 @@ void send_context_stopped_event(Context * ctx) { void send_context_started_event(Context * ctx) { unsigned i; assert(ctx->ref_count > 0); + assert(context_has_state(ctx)); ctx->stopped = 0; ctx->stopped_by_bp = 0; ctx->stopped_by_exception = 0; |