This changes iterate_over_live_ada_tasks to accept a
gdb::function_view. This is needed by a subsequent patch.
gdb/ChangeLog
2020-08-07 Tom Tromey <tromey@adacore.com>
* ada-lang.h (ada_task_list_iterator_ftype): Now a
gdb::function_view.
(iterate_over_live_ada_tasks): Change type of argument.
* ada-tasks.c (iterate_over_live_ada_tasks): Change type
of argument.
+2020-08-07 Tom Tromey <tromey@adacore.com>
+
+ * ada-lang.h (ada_task_list_iterator_ftype): Now a
+ gdb::function_view.
+ (iterate_over_live_ada_tasks): Change type of argument.
+ * ada-tasks.c (iterate_over_live_ada_tasks): Change type
+ of argument.
+
2020-08-07 Tom Tromey <tromey@adacore.com>
* ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
extern int ada_get_task_number (thread_info *thread);
-typedef void (ada_task_list_iterator_ftype) (struct ada_task_info *task);
+typedef gdb::function_view<void (struct ada_task_info *task)>
+ ada_task_list_iterator_ftype;
extern void iterate_over_live_ada_tasks
- (ada_task_list_iterator_ftype *iterator);
+ (ada_task_list_iterator_ftype iterator);
extern const char *ada_get_tcb_types_info (void);
terminated yet. */
void
-iterate_over_live_ada_tasks (ada_task_list_iterator_ftype *iterator)
+iterate_over_live_ada_tasks (ada_task_list_iterator_ftype iterator)
{
struct ada_tasks_inferior_data *data;