diff options
author | Eugene Tarassov | 2012-05-20 03:33:11 +0000 |
---|---|---|
committer | Eugene Tarassov | 2012-05-20 03:33:11 +0000 |
commit | 960e69fb9fd9ddcffd7b503d99b4a66c4fe12550 (patch) | |
tree | de570e38120c3e0028168248e77e9bcd889cac9d /agent | |
parent | 20965b7360787a02b501008927b3a3329c9005c7 (diff) | |
download | org.eclipse.tcf.agent-960e69fb9fd9ddcffd7b503d99b4a66c4fe12550.tar.gz org.eclipse.tcf.agent-960e69fb9fd9ddcffd7b503d99b4a66c4fe12550.tar.xz org.eclipse.tcf.agent-960e69fb9fd9ddcffd7b503d99b4a66c4fe12550.zip |
TCF Agent: run control: a bit better safe events logic
Diffstat (limited to 'agent')
-rw-r--r-- | agent/tcf/services/runctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/tcf/services/runctrl.c b/agent/tcf/services/runctrl.c index 3b12fd47..b8d0b23e 100644 --- a/agent/tcf/services/runctrl.c +++ b/agent/tcf/services/runctrl.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2011 Wind River Systems, Inc. and others. + * Copyright (c) 2007, 2012 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -1648,9 +1648,9 @@ static void run_safe_events(void * arg) { ContextExtensionRC * ext = EXT(ctx); l = l->next; ext->pending_safe_event = 0; - if (context_get_group(ctx, CONTEXT_GROUP_STOP) != grp) continue; if (ctx->exited || ctx->exiting) continue; if (ctx->stopped || !context_has_state(ctx)) continue; + if (!ext->safe_single_step && context_get_group(ctx, CONTEXT_GROUP_STOP) != grp) continue; if (stop_all_timer_cnt >= STOP_ALL_MAX_CNT) { trace(LOG_ALWAYS, "can't stop %s; error: timeout", ctx->id); ctx->exiting = 1; |