forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -208,12 +208,11 @@ gdb_connect_sync_socket (int pid)
|
||||
socket. Return zero if success, otherwise return non-zero. */
|
||||
|
||||
int
|
||||
agent_run_command (int pid, const char *cmd)
|
||||
agent_run_command (int pid, const char *cmd, int len)
|
||||
{
|
||||
int fd;
|
||||
int tid = agent_get_helper_thread_id ();
|
||||
ptid_t ptid = ptid_build (pid, tid, 0);
|
||||
int len = strlen (cmd) + 1;
|
||||
|
||||
#ifdef GDBSERVER
|
||||
int ret = write_inferior_memory (ipa_sym_addrs.addr_cmd_buf,
|
||||
|
||||
Reference in New Issue
Block a user