diff options
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index ee62153..6cffd86 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -734,8 +734,8 @@ void thread_change_ptid (process_stratum_target *targ, /* Iterator function to call a user-provided callback function once for each known thread. */ -typedef int (*thread_callback_func) (struct thread_info *, void *); -extern struct thread_info *iterate_over_threads (thread_callback_func, void *); +typedef gdb::function_view<bool (struct thread_info *)> thread_callback_func; +extern struct thread_info *iterate_over_threads (thread_callback_func); /* Pull in the internals of the inferiors/threads ranges and iterators. Must be done after struct thread_info is defined. */ |