Lines Matching refs:tid
353 lwpid_t tid; /* Thread ID */ member
599 create_thread_info (int pid, lwpid_t tid) in create_thread_info() argument
607 new_p->tid = tid; in create_thread_info()
624 printf ("First thread, pid %d tid %d!\n", pid, tid); in create_thread_info()
632 printf ("Subsequent thread, pid %d tid %d\n", pid, tid); in create_thread_info()
717 find_thread_info (lwpid_t tid) in find_thread_info() argument
723 if (p->tid == tid) in find_thread_info()
731 if (p->tid == tid) in find_thread_info()
757 if (p->tid == gdb_tid) in map_from_gdb_tid()
767 return p->tid; in map_from_gdb_tid()
775 if (p->tid == gdb_tid) in map_from_gdb_tid()
785 return p->tid; in map_from_gdb_tid()
803 if (p->tid == real_tid) in map_to_gdb_tid()
814 if (p->tid == real_tid) in map_to_gdb_tid()
845 is_pseudo_thread (lwpid_t tid) in is_pseudo_thread() argument
847 thread_info *p = find_thread_info (tid); in is_pseudo_thread()
857 is_terminated (lwpid_t tid) in is_terminated() argument
859 thread_info *p = find_thread_info (tid); in is_terminated()
872 lwpid_t tid; in is_process_id() local
879 tid = map_from_gdb_tid (pid); in is_process_id()
880 if (tid <= 0) in is_process_id()
883 tinfo = find_thread_info (tid); in is_process_id()
909 add_tthread (int pid, lwpid_t tid) in add_tthread() argument
913 p = find_thread_info (tid); in add_tthread()
915 p = create_thread_info (pid, tid); in add_tthread()
923 del_tthread (lwpid_t tid) in del_tthread() argument
937 if (p->tid == tid) in del_tthread()
942 printf ("Delete here: %d \n", tid); in del_tthread()
1008 get_pid_for (lwpid_t tid) in get_pid_for() argument
1014 if (p->tid == tid) in get_pid_for()
1022 if (p->tid == tid) in get_pid_for()
1034 set_handled (int pid, lwpid_t tid) in set_handled() argument
1038 p = find_thread_info (tid); in set_handled()
1040 p = add_tthread (pid, tid); in set_handled()
1048 was_handled (lwpid_t tid) in was_handled() argument
1052 p = find_thread_info (tid); in was_handled()
1062 clear_handled (lwpid_t tid) in clear_handled() argument
1068 printf ("clear_handled %d\n", (int) tid); in clear_handled()
1071 p = find_thread_info (tid); in clear_handled()
1104 clear_stepping_mode (lwpid_t tid) in clear_stepping_mode() argument
1110 printf ("clear_stepping_mode %d\n", (int) tid); in clear_stepping_mode()
1113 p = find_thread_info (tid); in clear_stepping_mode()
1162 printf (" Thread pid %d, tid %d", p->pid, p->tid); in print_tthread()
1259 printf ("Delete unseen thread: %d \n", p->tid); in update_thread_list()
1261 del_tthread (p->tid); in update_thread_list()
1280 call_real_ttrace (ttreq_t request, pid_t pid, lwpid_t tid, TTRACE_ARG_TYPE addr, in call_real_ttrace() argument
1286 tt_status = ttrace (request, pid, tid, addr, data, addr2); in call_real_ttrace()
1304 pid, tid, tt_status); in call_real_ttrace()
1334 call_real_ttrace_wait (int pid, lwpid_t tid, ttwopt_t option, ttstate_t *tsp, in call_real_ttrace_wait() argument
1341 ttw_status = ttrace_wait (pid, tid, option, tsp, tsp_size); in call_real_ttrace_wait()
1347 printf ("TW fail with pid %d, tid %d \n", pid, tid); in call_real_ttrace_wait()
1788 lwpid_t candidate_tid, tid; in select_stopped_thread_of_process() local
1805 for (tid = get_process_first_stopped_thread_id (pid, &tstate); in select_stopped_thread_of_process()
1806 tid != 0; in select_stopped_thread_of_process()
1807 tid = get_process_next_stopped_thread_id (pid, &tstate)) in select_stopped_thread_of_process()
1921 else if (tid != 0) in select_stopped_thread_of_process()
1942 int tid; /* really lwpid_t */ in check_thread_consistency() local
1949 for (tid = get_process_first_stopped_thread_id (real_pid, &tstate); in check_thread_consistency()
1950 tid != 0; in check_thread_consistency()
1951 tid = get_process_next_stopped_thread_id (real_pid, &tstate)) in check_thread_consistency()
1954 p = find_thread_info (tid); in check_thread_consistency()
1958 warning ("No internal thread data for thread %d.", tid); in check_thread_consistency()
1964 warning ("Inconsistent internal thread data for thread %d.", tid); in check_thread_consistency()
1969 warning ("Thread %d is not terminated, internal error.", tid); in check_thread_consistency()
1987 warning ("Internal thread data for thread %d is wrong.", tid); in check_thread_consistency()
2997 lwpid_t tid; in require_notification_of_events() local
3047 lwpid_t tid; in require_notification_of_exec_events() local
3153 hppa_enable_catch_fork (int tid) in hppa_enable_catch_fork() argument
3161 tid, in hppa_enable_catch_fork()
3173 printf ("enable fork, tid is %d\n", tid); in hppa_enable_catch_fork()
3177 tid, in hppa_enable_catch_fork()
3187 hppa_disable_catch_fork (int tid) in hppa_disable_catch_fork() argument
3195 tid, in hppa_disable_catch_fork()
3208 printf ("disable fork, tid is %d\n", tid); in hppa_disable_catch_fork()
3212 tid, in hppa_disable_catch_fork()
3224 child_insert_fork_catchpoint (int tid) in child_insert_fork_catchpoint() argument
3237 child_remove_fork_catchpoint (int tid) in child_remove_fork_catchpoint() argument
3249 hppa_enable_catch_vfork (int tid) in hppa_enable_catch_vfork() argument
3257 tid, in hppa_enable_catch_vfork()
3270 printf ("enable vfork, tid is %d\n", tid); in hppa_enable_catch_vfork()
3274 tid, in hppa_enable_catch_vfork()
3285 hppa_disable_catch_vfork (int tid) in hppa_disable_catch_vfork() argument
3292 tid, in hppa_disable_catch_vfork()
3305 printf ("disable vfork, tid is %d\n", tid); in hppa_disable_catch_vfork()
3308 tid, in hppa_disable_catch_vfork()
3320 child_insert_vfork_catchpoint (int tid) in child_insert_vfork_catchpoint() argument
3333 child_remove_vfork_catchpoint (int tid) in child_remove_vfork_catchpoint() argument
3350 hpux_has_forked (int tid, int *childpid) in hpux_has_forked() argument
3357 tinfo = find_thread_info (map_from_gdb_tid (tid)); in hpux_has_forked()
3367 tid, in hpux_has_forked()
3391 hpux_has_vforked (int tid, int *childpid) in hpux_has_vforked() argument
3398 tinfo = find_thread_info (map_from_gdb_tid (tid)); in hpux_has_vforked()
3406 tid, in hpux_has_vforked()
3430 child_insert_exec_catchpoint (int tid) in child_insert_exec_catchpoint() argument
3443 child_remove_exec_catchpoint (int tid) in child_remove_exec_catchpoint() argument
3455 hpux_has_execd (int tid, char **execd_pathname) in hpux_has_execd() argument
3462 tinfo = find_thread_info (map_from_gdb_tid (tid)); in hpux_has_execd()
3470 tid, in hpux_has_execd()
3486 char *exec_file = target_pid_to_exec_file (tid); in hpux_has_execd()
3554 lwpid_t tid; in child_thread_alive() local
3559 tid = map_from_gdb_tid (gdb_tid); in child_thread_alive()
3560 return !is_terminated (tid); in child_thread_alive()
3578 read_from_register_save_state (int tid, TTRACE_ARG_TYPE ss_offset, char *buf, in read_from_register_save_state() argument
3585 tid, in read_from_register_save_state()
3610 write_to_register_save_state (int tid, TTRACE_ARG_TYPE ss_offset, char *buf, in write_to_register_save_state() argument
3617 tid, in write_to_register_save_state()
3779 int tid; in kill_inferior() local
3879 p->pid, p->tid, in thread_dropping_event_check()
3894 p->pid, p->tid); in thread_dropping_event_check()
3961 else if (scan_tid != p->tid) in threads_continue_all_but_one()
3998 if (p->tid != real_tid) in threads_continue_all_but_one()
4010 p->tid, in threads_continue_all_but_one()
4021 p->tid, in threads_continue_all_but_one()
4122 if (p->tid == real_tid) in threads_continue_all_with_signals()
4139 p->tid, in threads_continue_all_with_signals()
4150 p->tid, in threads_continue_all_with_signals()
4161 thread_fake_step (lwpid_t tid, enum target_signal signal) in thread_fake_step() argument
4168 printf ("Doing a fake-step over a bpt, etc. for %d\n", tid); in thread_fake_step()
4170 if (is_terminated (tid)) in thread_fake_step()
4181 p = find_thread_info (tid); in thread_fake_step()
4198 tid, in thread_fake_step()
4207 fake_step_tid = tid; in thread_fake_step()
4287 lwpid_t tid; in child_resume() local
4302 tid = vforking_child_pid; in child_resume()
4304 tid = map_from_gdb_tid (PIDGET (inferior_ptid)); in child_resume()
4307 tid = map_from_gdb_tid (gdb_tid); in child_resume()
4321 printf ("Continue process %d\n", tid); in child_resume()
4323 printf ("Step/continue thread %d\n", tid); in child_resume()
4328 printf ("Continue thread %d\n", tid); in child_resume()
4330 printf ("Step just thread %d\n", tid); in child_resume()
4354 printf ("Saving signal %d for thread %d\n", signal, tid); in child_resume()
4357 k = find_thread_info (tid); in child_resume()
4374 printf ("No thread info for tid %d\n", tid); in child_resume()
4416 p = find_thread_info (tid); in child_resume()
4419 warning ("No thread information for tid %d, 'next' command ignored.\n", tid); in child_resume()
4469 threads_continue_all_but_one (tid, signal); in child_resume()
4485 thread_fake_step (tid, signal); in child_resume()
4491 clear_handled (tid); in child_resume()
4492 clear_stepping_mode (tid); in child_resume()
4513 call_ttrace (TT_PROC_CONTINUE, tid, TT_NIL, TT_NIL, TT_NIL); in child_resume()
4524 threads_continue_all_with_signals (tid, signal); in child_resume()
4532 printf ("Doing a continue w/signal of just thread %d\n", tid); in child_resume()
4535 threads_continue_one_with_signal (tid, signal); in child_resume()
4540 clear_handled (tid); in child_resume()
4541 clear_stepping_mode (tid); in child_resume()
4569 lwpid_t tid; in update_thread_state_after_attach() local
4589 for (tid = get_process_first_stopped_thread_id (pid, &thread_state); in update_thread_state_after_attach()
4590 tid != 0; in update_thread_state_after_attach()
4591 tid = get_process_next_stopped_thread_id (pid, &thread_state)) in update_thread_state_after_attach()
4597 a_thread = tid; in update_thread_state_after_attach()
4618 add_tthread (pid, tid); in update_thread_state_after_attach()
4619 p = find_thread_info (tid); in update_thread_state_after_attach()
4645 p->pid, p->tid); in update_thread_state_after_attach()
4648 set_handled (pid, tid); in update_thread_state_after_attach()
4663 set_handled (pid, tid); in update_thread_state_after_attach()
4677 p->pid, p->tid); in update_thread_state_after_attach()
4977 child_pid_to_exec_file (int tid) in child_pid_to_exec_file() argument
4988 tid, in child_pid_to_exec_file()
4997 if (pstat_getproc (&buf, sizeof (struct pst_status), 0, tid) != -1) in child_pid_to_exec_file()
5542 lwpid_t tid; in ttrace_write_reg_64() local
5545 tid = map_from_gdb_tid (gdb_tid); in ttrace_write_reg_64()
5546 pid = get_pid_for (tid); in ttrace_write_reg_64()
5551 tid, in ttrace_write_reg_64()
5571 pid, tid, tt_status ); in ttrace_write_reg_64()