Lines Matching refs:tp

72   struct thread_info *tp;
77 for (tp = thread_list; tp; tp = tp->next)
78 if (tp->step_resume_breakpoint == *breakpointp)
79 tp->step_resume_breakpoint = NULL;
86 free_thread (struct thread_info *tp)
90 if (tp->step_resume_breakpoint)
91 delete_breakpoint (tp->step_resume_breakpoint);
95 if (tp->private)
96 xfree (tp->private);
98 xfree (tp);
104 struct thread_info *tp, *tpnext;
110 for (tp = thread_list; tp; tp = tpnext)
112 tpnext = tp->next;
113 free_thread (tp);
125 struct thread_info *tp;
127 tp = (struct thread_info *) xmalloc (sizeof (*tp));
128 memset (tp, 0, sizeof (*tp));
129 tp->ptid = ptid;
130 tp->num = ++highest_thread_num;
131 tp->next = thread_list;
132 thread_list = tp;
133 return tp;
139 struct thread_info *tp, *tpprev;
143 for (tp = thread_list; tp; tpprev = tp, tp = tp->next)
144 if (ptid_equal (tp->ptid, ptid))
147 if (!tp)
151 tpprev->next = tp->next;
153 thread_list = tp->next;
155 free_thread (tp);
161 struct thread_info *tp;
163 for (tp = thread_list; tp; tp = tp->next)
164 if (tp->num == num)
165 return tp;
174 struct thread_info *tp;
176 for (tp = thread_list; tp; tp = tp->next)
177 if (ptid_equal (tp->ptid, ptid))
178 return tp;
201 struct thread_info *tp;
203 for (tp = thread_list; tp; tp = tp->next)
204 if ((*callback) (tp, data))
205 return tp;
213 struct thread_info *tp;
215 for (tp = thread_list; tp; tp = tp->next)
216 if (tp->num == num)
225 struct thread_info *tp;
227 for (tp = thread_list; tp; tp = tp->next)
228 if (ptid_equal (tp->ptid, ptid))
229 return tp->num;
247 struct thread_info *tp;
249 for (tp = thread_list; tp; tp = tp->next)
250 if (ptid_equal (tp->ptid, ptid))
261 struct thread_info *tp;
270 for (tp = thread_list; tp; tp = tp->next)
273 ui_out_field_int (uiout, "thread-id", tp->num);
309 struct thread_info *tp;
313 tp = find_thread_id (pid_to_thread_id (ptid));
314 if (tp == NULL)
317 *prev_pc = tp->prev_pc;
318 *trap_expected = tp->trap_expected;
319 *step_resume_breakpoint = tp->step_resume_breakpoint;
320 *through_sigtramp_breakpoint = tp->through_sigtramp_breakpoint;
321 *step_range_start = tp->step_range_start;
322 *step_range_end = tp->step_range_end;
323 *step_frame_id = tp->step_frame_id;
324 *handling_longjmp = tp->handling_longjmp;
325 *another_trap = tp->another_trap;
327 tp->stepping_through_solib_after_catch;
329 tp->stepping_through_solib_catchpoints;
330 *stepping_through_sigtramp = tp->stepping_through_sigtramp;
331 *current_line = tp->current_line;
332 *current_symtab = tp->current_symtab;
333 *step_sp = tp->step_sp;
355 struct thread_info *tp;
359 tp = find_thread_id (pid_to_thread_id (ptid));
360 if (tp == NULL)
363 tp->prev_pc = prev_pc;
364 tp->trap_expected = trap_expected;
365 tp->step_resume_breakpoint = step_resume_breakpoint;
366 tp->through_sigtramp_breakpoint = through_sigtramp_breakpoint;
367 tp->step_range_start = step_range_start;
368 tp->step_range_end = step_range_end;
369 tp->step_frame_id = (*step_frame_id);
370 tp->handling_longjmp = handling_longjmp;
371 tp->another_trap = another_trap;
372 tp->stepping_through_solib_after_catch = stepping_through_solib_after_catch;
373 tp->stepping_through_solib_catchpoints = stepping_through_solib_catchpoints;
374 tp->stepping_through_sigtramp = stepping_through_sigtramp;
375 tp->current_line = current_line;
376 tp->current_symtab = current_symtab;
377 tp->step_sp = step_sp;
382 thread_alive (struct thread_info *tp)
384 if (PIDGET (tp->ptid) == -1)
386 if (!target_thread_alive (tp->ptid))
388 tp->ptid = pid_to_ptid (-1); /* Mark it as dead */
397 struct thread_info *tp, *next;
399 for (tp = thread_list; tp; tp = next)
401 next = tp->next;
402 if (!thread_alive (tp))
403 delete_thread (tp->ptid);
417 struct thread_info *tp;
432 for (tp = thread_list; tp; tp = tp->next)
434 if (ptid_equal (tp->ptid, current_ptid))
440 printf_filtered ("%d %s", tp->num, target_tid_to_str (tp->ptid));
442 printf_filtered ("%d %s", tp->num, target_pid_to_str (tp->ptid));
445 extra_info = target_extra_thread_info (tp);
450 switch_to_thread (tp->ptid);
538 struct thread_info *tp;
556 for (tp = thread_list; tp; tp = tp->next)
557 if (thread_alive (tp))
559 switch_to_thread (tp->ptid);
562 tp->num, target_tid_to_str (inferior_ptid));
564 printf_filtered ("\nThread %d (%s):\n", tp->num,
600 struct thread_info *tp;
627 tp = find_thread_id (start);
629 if (!tp)
631 else if (!thread_alive (tp))
635 switch_to_thread (tp->ptid);
637 printf_filtered ("\nThread %d (%s):\n", tp->num,
640 printf_filtered ("\nThread %d (%s):\n", tp->num,
683 struct thread_info *tp;
687 tp = find_thread_id (num);
689 if (!tp)
692 if (!thread_alive (tp))
695 switch_to_thread (tp->ptid);