gdb/
[deliverable/binutils-gdb.git] / gdb / common / agent.c
index ecb52dc4f8bae846d826cc23b8dfc1f438500ebd..8fdc75ace1eac004796aeb74b87cb5f193e38c37 100644 (file)
@@ -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,
This page took 0.024604 seconds and 4 git commands to generate.