aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-source-styling.c
diff options
context:
space:
mode:
authorStephan Rohr <stephan.rohr@intel.com>2024-10-16 01:42:27 -0700
committerStephan Rohr <stephan.rohr@intel.com>2024-10-22 04:41:55 -0700
commit4689c9b94690b2cd7c3494d31939afea6594ed8b (patch)
tree1940c760575df04d24e6527f423d5049ecdbfa95 /gdb/testsuite/gdb.python/py-source-styling.c
parenta03c03f84ac331a1ae03fbf1d7e53001935e45be (diff)
downloadbinutils-4689c9b94690b2cd7c3494d31939afea6594ed8b.zip
binutils-4689c9b94690b2cd7c3494d31939afea6594ed8b.tar.gz
binutils-4689c9b94690b2cd7c3494d31939afea6594ed8b.tar.bz2
gdbserver: use 'gdb::function_view' in 'find_*' and 'for_each_*'
Remove the templated versions of 'find_thread', 'for_each_thread' and 'find_thread_in_random' and replace the template function argument with 'gdb::function_view'. The usage of 'gdb::function_view' produces less cryptic messages on errors and documents well the types of the parameters taken by the callback and its return type. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-source-styling.c')
0 files changed, 0 insertions, 0 deletions