gdbsupport/selftest: Replace for_each_selftest with an iterator_range
authorLancelot SIX <lancelot.six@amd.com>
Wed, 23 Mar 2022 15:29:53 +0000 (15:29 +0000)
committerLancelot SIX <lancelot.six@amd.com>
Tue, 19 Apr 2022 08:12:42 +0000 (09:12 +0100)
commitc57207c15c4fa980263e6849d0e6472c33e647fc
tree5f84e945862557442b82ee973afb7db620117dd5
parent2aaee75f81a130011c96a0ab38475dba894114c3
gdbsupport/selftest: Replace for_each_selftest with an iterator_range

Remove the callback-based selftests::for_each_selftest function and use
an iterator_range instead.

Also use this iterator range in run_tests so all iterations over the
selftests are done in a consistent way.  This will become useful in a
later commit.

Change-Id: I0b3a5349a7987fbcb0071f11c394e353df986583
gdb/maint.c
gdbsupport/selftest.cc
gdbsupport/selftest.h