aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 14:58:38 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 14:58:38 -0400
commit055c879fcf242e43a6ef8190f83905109922da93 (patch)
tree540862da9c8482b7adfe5151f0d32f42d2445cdd /gdb/breakpoint.h
parent240edef62f0cb5c6cb3dc6da9e35bd8f8af69e01 (diff)
downloadfsf-binutils-gdb-055c879fcf242e43a6ef8190f83905109922da93.zip
fsf-binutils-gdb-055c879fcf242e43a6ef8190f83905109922da93.tar.gz
fsf-binutils-gdb-055c879fcf242e43a6ef8190f83905109922da93.tar.bz2
gdb: remove iterate_over_bp_locations function
Remove it, change users (well, a single one) to use all_bp_locations. This requires moving all_bp_locations to breakpoint.h to expose it. gdb/ChangeLog: * breakpoint.h (iterate_over_bp_locations): Remove. Update users to use all_bp_locations. (all_bp_locations): New. * breakpoint.c (all_bp_locations): Make non-static. (iterate_over_bp_locations): Remove. Change-Id: Iaf1f716d6c2c5b2975579b3dc113a86f5d0975be
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index ffe0424..e40504f 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1313,9 +1313,6 @@ extern void breakpoint_init_inferior (enum inf_context);
extern void breakpoint_auto_delete (bpstat);
-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. */
extern struct command_line *breakpoint_commands (struct breakpoint *b);
@@ -1755,6 +1752,10 @@ using tracepoint_range = next_adapter<breakpoint, tracepoint_iterator>;
tracepoint_range all_tracepoints ();
+/* Return a range to iterate over all breakpoint locations. */
+
+const std::vector<bp_location *> &all_bp_locations ();
+
/* Nonzero if the specified PC cannot be a location where functions
have been inlined. */