Lines Matching refs:pid
465 void gdbserver_fork_end(CPUState *cpu, pid_t pid) in gdbserver_fork_end() argument
474 if (pid == -1) { in gdbserver_fork_end()
484 if (pid == 0) { in gdbserver_fork_end()
490 if (pid == 0) { in gdbserver_fork_end()
494 g_assert(gdbserver_state.processes[0].pid == in gdbserver_fork_end()
497 gdbserver_state.processes[0].pid = getpid(); in gdbserver_fork_end()
502 gdbserver_user_state.fork_peer_pid = pid; in gdbserver_fork_end()
503 gdbserver_user_state.fork_peer_tid = pid; in gdbserver_fork_end()
511 pid, pid, (int)getpid(), qemu_get_thread_id()); in gdbserver_fork_end()
582 if (pid == 0) { in gdbserver_fork_end()
595 bool gdb_handle_set_thread_user(uint32_t pid, uint32_t tid) in gdb_handle_set_thread_user() argument
598 pid == gdbserver_user_state.fork_peer_pid && in gdb_handle_set_thread_user()
607 bool gdb_handle_detach_user(uint32_t pid) in gdb_handle_detach_user() argument
612 enable = pid == gdbserver_user_state.fork_peer_pid; in gdb_handle_detach_user()
613 if (enable || pid == getpid()) { in gdb_handle_detach_user()