diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-22 22:00:39 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-22 22:01:19 -0400 |
commit | 0406545d0668c0d2900654a8ec65bdaf23d157c9 (patch) | |
tree | 1497f66bdea1e7f786a3c12f4dcc7b637447af3e /gdb/breakpoint.h | |
parent | 19f6a43c6c17147acba638eab64f2bf8de4b1447 (diff) | |
download | binutils-0406545d0668c0d2900654a8ec65bdaf23d157c9.zip binutils-0406545d0668c0d2900654a8ec65bdaf23d157c9.tar.gz binutils-0406545d0668c0d2900654a8ec65bdaf23d157c9.tar.bz2 |
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
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index ded498f..3447e25 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1304,9 +1304,8 @@ extern void breakpoint_init_inferior (enum inf_context); extern void breakpoint_auto_delete (bpstat); -typedef void (*walk_bp_location_callback) (struct bp_location *, void *); - -extern void iterate_over_bp_locations (walk_bp_location_callback); +extern void iterate_over_bp_locations + (gdb::function_view<void (bp_location *)> callback); /* Return the chain of command lines to execute when this breakpoint is hit. */ |