Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2015-01-28 17:23:53 +0000
committerEugene Tarassov2015-01-28 17:23:53 +0000
commit53123c6282943856db67c30b2e253bba6b108f13 (patch)
treed0b03d0252f95665503b007221e6df4a7a2083a4
parent467d4628e9e887d531f04dc727b44d5b700a3b69 (diff)
downloadorg.eclipse.tcf.agent-53123c6282943856db67c30b2e253bba6b108f13.tar.gz
org.eclipse.tcf.agent-53123c6282943856db67c30b2e253bba6b108f13.tar.xz
org.eclipse.tcf.agent-53123c6282943856db67c30b2e253bba6b108f13.zip
TCF Agent: better default for context_get_memory_map() in the context dispatcher: return empty map instead of error
-rw-r--r--agent/tcf/framework/context-dispatcher.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/agent/tcf/framework/context-dispatcher.c b/agent/tcf/framework/context-dispatcher.c
index c05e424e..ebdf84b1 100644
--- a/agent/tcf/framework/context-dispatcher.c
+++ b/agent/tcf/framework/context-dispatcher.c
@@ -205,10 +205,7 @@ int context_get_canonical_addr(Context * ctx, ContextAddress addr, Context ** ca
int context_get_memory_map(Context * ctx, MemoryMap * map) {
ContextExtensionMux * ext = EXT(ctx);
- if (ext->ctx_iface == NULL || ext->ctx_iface->context_get_memory_map == NULL) {
- errno = ERR_UNSUPPORTED;
- return -1;
- }
+ if (ext->ctx_iface == NULL || ext->ctx_iface->context_get_memory_map == NULL) return 0;
return ext->ctx_iface->context_get_memory_map(ctx, map);
}

Back to the top