diff options
Diffstat (limited to 'gdb/gnu-nat.h')
-rw-r--r-- | gdb/gnu-nat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gnu-nat.h b/gdb/gnu-nat.h index 8e949eb..43d5b75 100644 --- a/gdb/gnu-nat.h +++ b/gdb/gnu-nat.h @@ -29,6 +29,11 @@ extern struct inf *gnu_current_inf; /* Converts a GDB pid to a struct proc. */ struct proc *inf_tid_to_thread (struct inf *inf, int tid); +typedef void (inf_threads_ftype) (struct proc *thread, void *arg); + +/* Call F for every thread in inferior INF, passing ARG as second parameter. */ +void inf_threads (struct inf *inf, inf_threads_ftype *f, void *arg); + /* Makes sure that INF's thread list is synced with the actual process. */ int inf_update_procs (struct inf *inf); |