Skip to main content
summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authoreutarass2011-09-14 14:09:14 -0400
committereutarass2011-09-14 14:09:14 -0400
commit26c54103470e368889891a5d7d7c9dde76a46dac (patch)
treeed533abbb45ba3a6e46e23139c2482f0ddb55a6c /server
parent76f4e4c405a92f0ec5acc5f4443d1025ddda7116 (diff)
downloadorg.eclipse.tcf.agent-26c54103470e368889891a5d7d7c9dde76a46dac.tar.gz
org.eclipse.tcf.agent-26c54103470e368889891a5d7d7c9dde76a46dac.tar.xz
org.eclipse.tcf.agent-26c54103470e368889891a5d7d7c9dde76a46dac.zip
TCF Agent: implemented new context group: CONTEXT_GROUP_SYMBOLS. The group is used to associate symbol reader configuration with debug contexts.
Diffstat (limited to 'server')
-rw-r--r--server/services/context-proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/services/context-proxy.c b/server/services/context-proxy.c
index 5ecfed8d..3aea652f 100644
--- a/server/services/context-proxy.c
+++ b/server/services/context-proxy.c
@@ -984,7 +984,7 @@ static void read_memory_region_property(InputStream * inp, const char * name, vo
}
static void read_memory_map_item(InputStream * inp, void * args) {
- Channel * c = (Channel *)args;
+ ContextCache * cache = (ContextCache *)args;
MemoryRegion * m;
if (mem_buf_pos >= mem_buf_max) {
mem_buf_max = mem_buf_max == 0 ? 16 : mem_buf_max * 2;
@@ -994,7 +994,7 @@ static void read_memory_map_item(InputStream * inp, void * args) {
memset(m, 0, sizeof(MemoryRegion));
if (json_read_struct(inp, read_memory_region_property, m) && m->file_name != NULL) {
struct stat buf;
- char * fnm = apply_path_map(c, m->file_name, PATH_MAP_TO_LOCAL);
+ char * fnm = apply_path_map(cache->peer->host, cache->ctx, m->file_name, PATH_MAP_TO_LOCAL);
if (fnm != m->file_name) {
loc_free(m->file_name);
m->file_name = loc_strdup(fnm);
@@ -1022,7 +1022,7 @@ static void validate_memory_map_cache(Channel * c, void * args, int error) {
if (!error) {
error = read_errno(&c->inp);
mem_buf_pos = 0;
- json_read_array(&c->inp, read_memory_map_item, cache->peer->host);
+ json_read_array(&c->inp, read_memory_map_item, cache);
cache->mmap.region_cnt = mem_buf_pos;
cache->mmap.region_max = mem_buf_pos;
cache->mmap.regions = (MemoryRegion *)loc_alloc(sizeof(MemoryRegion) * mem_buf_pos);

Back to the top