Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-03-11 07:05:33 +0000
committerEugene Tarassov2012-03-11 07:05:33 +0000
commitb2753ee91316e70e6fbe45890b306a4070ace220 (patch)
treebf5faab6e7d78396cb7014782bf45ad6033e9593 /agent/tcf/services/symbols_proxy.c
parente1182889f1d75a4905ff0acda37a2d6c4d0cbf70 (diff)
downloadorg.eclipse.tcf.agent-b2753ee91316e70e6fbe45890b306a4070ace220.tar.gz
org.eclipse.tcf.agent-b2753ee91316e70e6fbe45890b306a4070ace220.tar.xz
org.eclipse.tcf.agent-b2753ee91316e70e6fbe45890b306a4070ace220.zip
TCF Agent: added support for function call injection.
Diffstat (limited to 'agent/tcf/services/symbols_proxy.c')
-rw-r--r--agent/tcf/services/symbols_proxy.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/agent/tcf/services/symbols_proxy.c b/agent/tcf/services/symbols_proxy.c
index cf86270a..3ac08264 100644
--- a/agent/tcf/services/symbols_proxy.c
+++ b/agent/tcf/services/symbols_proxy.c
@@ -1220,16 +1220,18 @@ static void read_location_command(InputStream * inp, void * args) {
if (read_stream(inp) != ',') exception(ERR_JSON_SYNTAX);
cmd->args.num = json_read_int64(inp);
break;
- case SFT_CMD_REGISTER:
+ case SFT_CMD_RD_REG:
+ case SFT_CMD_WR_REG:
if (read_stream(inp) != ',') exception(ERR_JSON_SYNTAX);
json_read_string(inp, id, sizeof(id));
if (id2register(id, &ctx, &frame, &cmd->args.reg) < 0) trace_error = errno;
break;
- case SFT_CMD_DEREF:
+ case SFT_CMD_RD_MEM:
+ case SFT_CMD_WR_MEM:
if (read_stream(inp) != ',') exception(ERR_JSON_SYNTAX);
- cmd->args.deref.size = json_read_ulong(inp);
+ cmd->args.mem.size = json_read_ulong(inp);
if (read_stream(inp) != ',') exception(ERR_JSON_SYNTAX);
- cmd->args.deref.big_endian = json_read_boolean(inp);
+ cmd->args.mem.big_endian = json_read_boolean(inp);
break;
case SFT_CMD_LOCATION:
if (read_stream(inp) != ',') exception(ERR_JSON_SYNTAX);
@@ -1409,6 +1411,13 @@ int get_next_stack_frame(StackFrame * frame, StackFrame * down) {
return 0;
}
+int get_funccall_info(const Symbol * func,
+ const Symbol ** args, unsigned args_cnt, FunctionCallInfo ** info) {
+ /* TODO: get_funccall_info() in symbols proxy */
+ set_errno(ERR_OTHER, "get_funccall_info() is not supported yet by TCF server");
+ return -1;
+}
+
const char * get_symbol_file_name(MemoryRegion * module) {
errno = 0;
return NULL;

Back to the top