diff options
author | Yao Qi <yao@codesourcery.com> | 2012-04-16 11:24:47 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-04-16 11:24:47 +0000 |
commit | 42476b702c78006853f79b2013af919c313c1f7a (patch) | |
tree | 8655c361c05aff36eb6782afa9e6e0a8a0ac4c43 /gdb/linux-nat.c | |
parent | 7bc83639079c1ba45fae3c16a00eb1806107ae28 (diff) | |
download | gdb-42476b702c78006853f79b2013af919c313c1f7a.zip gdb-42476b702c78006853f79b2013af919c313c1f7a.tar.gz gdb-42476b702c78006853f79b2013af919c313c1f7a.tar.bz2 |
gdb/
* common/agent.c (agent_run_command): Add one more parameter `len'.
Update callers.
* common/agent.h: Update declaration.
* linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
Update.
(linux_child_static_tracepoint_markers_by_strid): Ditto.
gdb/gdbserver/
* tracepoint.c (COPY_FIELD_TO_BUF): New macro.
(struct tracepoint_action_ops) <send>: New field.
(m_tracepoint_action_send, r_tracepoint_action_send): New.
(agent_expr_send, x_tracepoint_action_send): New.
(l_tracepoint_action_send): New.
(cmd_qtdp): Download and install tracepoint
according to `use_agent'.
(run_inferior_command): Add one more parameter `len'.
Update callers.
(tracepoint_send_agent): New.
(cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index d81d55e..ac1a0ea 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4796,7 +4796,7 @@ linux_child_static_tracepoint_markers_by_strid (const char *strid) memcpy (s, "qTfSTM", sizeof ("qTfSTM")); s[sizeof ("qTfSTM")] = 0; - agent_run_command (pid, s); + agent_run_command (pid, s, strlen (s) + 1); old_chain = make_cleanup (free_current_marker, &marker); make_cleanup (cleanup_target_stop, &ptid); @@ -4826,7 +4826,7 @@ linux_child_static_tracepoint_markers_by_strid (const char *strid) memcpy (s, "qTsSTM", sizeof ("qTsSTM")); s[sizeof ("qTsSTM")] = 0; - agent_run_command (pid, s); + agent_run_command (pid, s, strlen (s) + 1); p = s; } |