]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: re-work parallel-for-selftests.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 May 2025 17:57:57 +0000 (13:57 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 13 Jun 2025 16:14:14 +0000 (12:14 -0400)
commit48b60fbfbc0b079263db0161ea1ae3172d2b4a26
tree280480d37ee3409c586ced9e9659ab1a27e7cdeb
parent8b9c9b26e18a63aae5b7fcac6b68cede5b61aaf3
gdb: re-work parallel-for-selftests.c

I find this file difficult to work with and modify, due to how it uses
the preprocessor to include itself, to generate variations of the test
functions.  Change it to something a bit more C++-y, with a test
function that accepts a callback to invoke the foreach function under
test.

Change-Id: Ibf1e2907380a88a4f8e4b4b88df2b0dfd0e9b6c8
gdb/unittests/parallel-for-selftests.c