Skip to main content
summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorEugene Tarassov2014-06-25 13:38:53 -0400
committerEugene Tarassov2014-06-25 13:38:53 -0400
commit906bc2dec63c96ee13b1db147e63e14732467513 (patch)
tree387ff5573f6cc10973c21183022e13e8c90b1196 /server
parent339c79cbfcb9892be4cb92e2c011b1c3ae28f988 (diff)
downloadorg.eclipse.tcf.agent-906bc2dec63c96ee13b1db147e63e14732467513.tar.gz
org.eclipse.tcf.agent-906bc2dec63c96ee13b1db147e63e14732467513.tar.xz
org.eclipse.tcf.agent-906bc2dec63c96ee13b1db147e63e14732467513.zip
TCF Agent: code cleanup
Diffstat (limited to 'server')
-rw-r--r--server/tcf/services/context-proxy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tcf/services/context-proxy.c b/server/tcf/services/context-proxy.c
index a0e5e2ac..46fda0a0 100644
--- a/server/tcf/services/context-proxy.c
+++ b/server/tcf/services/context-proxy.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2013 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007, 2014 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.
@@ -1430,12 +1430,11 @@ static ContextCache * get_memory_map_cache(Context * ctx) {
Channel * c = cache->peer->target;
Trap trap;
+ assert(cache->ctx == ctx);
if (!set_trap(&trap)) return NULL;
if (is_channel_closed(c)) exception(ERR_CHANNEL_CLOSED);
if (cache->peer != NULL && !cache->peer->rc_done) cache_wait(&cache->peer->rc_cache);
- cache = *EXT(ctx);
- assert(cache->ctx == ctx);
if (cache->pending_get_mmap != NULL) cache_wait(&cache->mmap_cache);
if (cache->mmap_is_valid == 0 && cache->peer != NULL) {
cache->pending_get_mmap = protocol_send_command(c, MEMORY_MAP, "get", validate_memory_map_cache, cache);

Back to the top