X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgnu-nat.h;h=9e504f337935cb6e0a2c1ad7fe9551f5bb477ffd;hb=e26b7e41652e288dfdb4c48121bba470c4774150;hp=91855b5285d04a30468745e2d1f092b459e809c5;hpb=0b30217134add051e159a192066a1e568ebd837f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gnu-nat.h b/gdb/gnu-nat.h index 91855b5285..9e504f3379 100644 --- a/gdb/gnu-nat.h +++ b/gdb/gnu-nat.h @@ -1,6 +1,5 @@ /* Common things used by the various *gnu-nat.c files - Copyright (C) 1995-1997, 1999-2000, 2007-2012 Free Software - Foundation, Inc. + Copyright (C) 1995-2016 Free Software Foundation, Inc. Written by Miles Bader @@ -30,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);