Lines Matching refs:pid
210 return gdbserver_state.processes[index].pid; in gdb_get_cpu_pid()
216 GDBProcess *gdb_get_process(uint32_t pid) in gdb_get_process() argument
220 if (!pid) { in gdb_get_process()
226 if (gdbserver_state.processes[i].pid == pid) { in gdb_get_process()
257 if (gdb_get_cpu_pid(cpu) == process->pid) { in gdb_get_first_cpu_in_process()
267 uint32_t pid = gdb_get_cpu_pid(cpu); in gdb_next_cpu_in_process() local
271 if (gdb_get_cpu_pid(cpu) == pid) { in gdb_next_cpu_in_process()
310 static CPUState *gdb_get_cpu(uint32_t pid, uint32_t tid) in gdb_get_cpu() argument
315 if (!pid && !tid) { in gdb_get_cpu()
318 } else if (pid && !tid) { in gdb_get_cpu()
320 process = gdb_get_process(pid); in gdb_get_cpu()
341 if (pid && process->pid != pid) { in gdb_get_cpu()
664 uint32_t *pid, uint32_t *tid) in read_thread_id() argument
695 if (pid) { in read_thread_id()
696 *pid = p; in read_thread_id()
720 uint32_t pid, tid; in gdb_handle_vcont() local
775 kind = read_thread_id(p, &p, &pid, &tid); in gdb_handle_vcont()
799 process = gdb_get_process(pid); in gdb_handle_vcont()
819 cpu = gdb_get_cpu(pid, tid); in gdb_handle_vcont()
920 &this_param.thread_id.pid, in cmd_parse_params()
1000 uint32_t pid = 1; in handle_detach() local
1008 pid = gdb_get_cmd_param(params, 0)->val_ul; in handle_detach()
1012 if (gdb_handle_detach_user(pid)) { in handle_detach()
1017 process = gdb_get_process(pid); in handle_detach()
1021 if (pid == gdb_get_cpu_pid(gdbserver_state.c_cpu)) { in handle_detach()
1025 if (pid == gdb_get_cpu_pid(gdbserver_state.g_cpu)) { in handle_detach()
1051 cpu = gdb_get_cpu(gdb_get_cmd_param(params, 0)->thread_id.pid, in handle_thread_alive()
1092 uint32_t pid, tid; in handle_set_thread() local
1110 pid = gdb_get_cmd_param(params, 1)->thread_id.pid; in handle_set_thread()
1113 if (gdb_handle_set_thread_user(pid, tid)) { in handle_set_thread()
1117 cpu = gdb_get_cpu(pid, tid); in handle_set_thread()
1605 cpu = gdb_get_cpu(gdb_get_cmd_param(params, 0)->thread_id.pid, in handle_query_thread_extra()
2473 int pid; in gdb_create_default_process() local
2477 pid = getpid(); in gdb_create_default_process()
2480 pid = s->processes[s->process_num - 1].pid; in gdb_create_default_process()
2482 pid = 0; in gdb_create_default_process()
2485 assert(pid < UINT32_MAX); in gdb_create_default_process()
2486 pid++; in gdb_create_default_process()
2491 process->pid = pid; in gdb_create_default_process()