gdb: use function_view for iterate_over_bp_locations' callback
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Apr 2021 02:00:39 +0000 (22:00 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Apr 2021 02:01:19 +0000 (22:01 -0400)
commit0406545d0668c0d2900654a8ec65bdaf23d157c9
tree1497f66bdea1e7f786a3c12f4dcc7b637447af3e
parent19f6a43c6c17147acba638eab64f2bf8de4b1447
gdb: use function_view for iterate_over_bp_locations' callback

Use a function_view instead of function pointer + data.  Actually,
nothing uses the data anyway, but that makes iterate_over_bp_locations
more like iterate_over_breakpoints.

gdb/ChangeLog:

* breakpoint.c (iterate_over_bp_locations): Change callback to
function view, remove data parameter.
* breakpoint.h (iterate_over_bp_locations): Likewise.
* record-full.c (record_full_sync_record_breakpoints): Remove
data parameter.

Change-Id: I66cdc94a505f67bc640bcc66865fb535ee939a57
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/record-full.c