Lines Matching defs:pid
43 | hello I'm in process <pid> |
56 equivalent to "adb forward tcp:<hostport> jdwp:<pid>"
58 "jdwp:<pid>" is a new forward destination format used to target
113 /** JDWP PID List Support Code
114 ** for each JDWP process, we record its pid and its connected socket
127 int pid;
131 char in_buff[4]; /* input character to read PID */
151 if (proc->pid < 0)
154 len = snprintf(p, end-p, "%d\n", proc->pid);
196 proc->pid = -1;
225 proc->pid = -1;
247 /* start by waiting for the PID */
260 if (proc->pid < 0) {
261 /* read the PID as a 4-hexchar string */
286 /* we have read 4 characters, now decode the pid */
290 if (sscanf( temp, "%04x", &proc->pid ) != 1) {
291 D("could not decode JDWP %p PID number: '%s'\n", proc, temp);
296 D("Adding pid %d to jdwp process list\n", proc->pid);
301 /* the pid was read, if we get there it's probably because the connection
314 D("terminating JDWP %d connection: %s\n", proc->pid,
321 proc->pid, len );
326 if (proc->pid >= 0)
327 D( "remove pid %d to jdwp process list\n", proc->pid );
334 D("trying to write to JDWP pid controli (count=%d first=%d) %d\n",
335 proc->pid, proc->out_count, proc->out_fds[0]);
366 proc->pid, strerror(errno));
373 proc->pid, strerror(errno));
386 proc->pid, strerror(errno));
391 fd, proc->pid);
398 proc->pid, strerror(errno));
410 create_jdwp_connection_fd(int pid)
414 D("looking for pid %d in JDWP process list\n", pid);
416 if (proc->pid == pid) {
428 D("%s: too many pending JDWP connection for pid %d\n",
429 __FUNCTION__, pid);