diff options
author | Eugene Tarassov | 2018-05-22 20:24:47 +0000 |
---|---|---|
committer | Eugene Tarassov | 2018-05-22 20:24:47 +0000 |
commit | 0698b5892866cddb8f8a6990f64422e1bcf4ea37 (patch) | |
tree | 846a6e0a7e1ed4838867e30ad59c03f8137c8cf4 | |
parent | 352ad3620ce037979bee7a56fe9ca3b131782d02 (diff) | |
download | org.eclipse.tcf.agent-0698b5892866cddb8f8a6990f64422e1bcf4ea37.tar.gz org.eclipse.tcf.agent-0698b5892866cddb8f8a6990f64422e1bcf4ea37.tar.xz org.eclipse.tcf.agent-0698b5892866cddb8f8a6990f64422e1bcf4ea37.zip |
TCF Agent: fixed: when line numbers proxy is enabled, cannot step context without client connection
-rw-r--r-- | agent/tcf/services/linenumbers_proxy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/tcf/services/linenumbers_proxy.c b/agent/tcf/services/linenumbers_proxy.c index bdc8867e..1f886885 100644 --- a/agent/tcf/services/linenumbers_proxy.c +++ b/agent/tcf/services/linenumbers_proxy.c @@ -268,6 +268,11 @@ int address_to_line(Context * ctx, ContextAddress addr0, ContextAddress addr1, L unsigned h; Trap trap; + if (cache_channel() == NULL) { + /* This is needed for run control to work without a client connected */ + return 0; + } + if (!set_trap(&trap)) return -1; ctx = context_get_group(ctx, CONTEXT_GROUP_SYMBOLS); |