aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 5892b15..8a34671 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -602,11 +602,10 @@ find_thread_by_handle (gdb::array_view<const gdb_byte> handle,
*/
struct thread_info *
-iterate_over_threads (int (*callback) (struct thread_info *, void *),
- void *data)
+iterate_over_threads (gdb::function_view<bool (struct thread_info *)> callback)
{
for (thread_info *tp : all_threads_safe ())
- if ((*callback) (tp, data))
+ if (callback (tp))
return tp;
return NULL;