Lines Matching defs:threads

123    afterwards).  This effects INF's threads' resume_sc count.  */
159 struct proc *threads; /* A linked list of all threads in TASK. */
199 /* When starting a new inferior, we don't try to validate threads until all
209 (pausing individual threads as necessary). */
216 threads -- see the definition of those fields in struct proc. */
550 /* Note that these are all the values for threads; the task simply uses the
639 inf->threads = 0;
762 inf_validate_procs (inf); /* Trash all the threads. */
865 is. If INF is running, the resume_sc count of INF's threads will
910 /* We don't have to update INF->threads even though we're iterating over it
921 /* The task is becoming _more_ suspended; do before any threads. */
930 for (thread = inf->threads; thread; thread = thread->next)
935 threads; do it now. */
944 threads list any more. */
960 struct proc *thread = inf->threads;
974 struct proc *thread = inf->threads;
991 for (thread = inf->threads; thread; thread = thread->next)
997 /* Make INF's list of threads be consistent with reality of TASK. */
1001 thread_array_t threads;
1005 /* If no threads are currently running, this function will guarantee that
1006 things are up to date. The exception is if there are zero threads --
1008 agent will create threads. */
1009 inf->threads_up_to_date = inf->threads ? !inf->running : 0;
1013 kern_return_t err = task_threads (task->port, &threads, &num_threads);
1015 inf_debug (inf, "fetching threads");
1035 /* The last thread in INF->threads, so we can add to the end. */
1038 struct proc *thread = inf->threads;
1050 if (thread->port == threads[i])
1069 inf->threads = thread;
1077 mach_port_deallocate (mach_task_self (), threads[i]);
1083 thread = make_proc (inf, threads[i], next_thread_id++);
1087 inf->threads = thread;
1089 proc_debug (thread, "new thread: %lu", threads[i]);
1108 (vm_address_t) threads, (num_threads * sizeof (thread_t)));
1135 for (thread = inf->threads; thread; thread = thread->next)
1146 /* Cause INF to continue execution immediately; individual threads may still
1155 for (thread = inf->threads; thread; thread = thread->next)
1171 /* Cause INF to stop execution immediately; individual threads may still
1180 for (thread = inf->threads; thread; thread = thread->next)
1238 inf->signal_thread = inf->threads ? inf->threads->next : 0;
1272 for (thread = inf->threads; thread; thread = thread->next)
1310 for (thread = inf->threads; thread; thread = thread->next)
1325 for (thread = inf->threads; thread; thread = thread->next)
1333 the resume_sc's of INF's threads may be affected. */
1438 for (thread = inf->threads; thread; thread = thread->next)
1476 if (!inf->threads && !inf->pending_execs)
1477 /* No threads! Assume that maybe some outside agency is frobbing our
1478 task, and really look for new threads. If we can't find any, just tell
1482 if (!inf->threads && !inf->task->dead)
1483 error (_("There are no threads; try again later."));
1623 if (inf_update_procs (inf) && inf->threads)
1624 ptid = ptid_t (inf->pid, inf->threads->tid, 0); /* The first
1781 /* Since the task is dead, its threads are dying with it. */
1987 -1 true Single step the current thread allowing other threads to run.
1988 -1 false Continue the current thread allowing other threads to run.
2037 /* Allow all threads to run, except perhaps single-stepping one. */
2039 inf_debug (inf, "running all threads; tid = %d",
2107 if (gnu_current_inf->task && gnu_current_inf->threads)
2109 return gnu_current_inf->threads->tid;
2177 /* Get rid of the old shell threads. */
2238 renumber_threads (0); /* Give our threads reasonable names. */
2859 gdb_printf ("New threads %s suspended while gdb has control%s.\n",
2879 gdb_printf ("New threads %s allowed to run.\n",
2894 gdb_printf ("New threads will get a detach-suspend-count of %d.\n",
3174 Set whether the new threads are suspended while gdb has control.\n\
3180 Show whether new threads are suspended while gdb has control."),
3184 Set whether new threads are allowed to run (once gdb has noticed them)."),
3187 Show whether new threads are allowed to run (once gdb has noticed them)."),
3191 _("Set the default detach-suspend-count value for new threads."),
3194 _("Show the default detach-suspend-count value for new threads."),
3255 used to pause individual threads by default instead."),
3477 Force the threads absolute suspend-count to be gdb's.\n\
3479 to the thread's initial suspend-count when gdb notices the threads."),