diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-08-30 16:10:41 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-08-31 09:55:31 -0400 |
commit | 9fe3819e83a442f1bd563000120121e5518f7d53 (patch) | |
tree | 460f1bcd0c4c163581170e926f48e15b01d12d66 /gdb/breakpoint.c | |
parent | 88ae41e17980533927f98339bcb40015522f06c4 (diff) | |
download | gdb-9fe3819e83a442f1bd563000120121e5518f7d53.zip gdb-9fe3819e83a442f1bd563000120121e5518f7d53.tar.gz gdb-9fe3819e83a442f1bd563000120121e5518f7d53.tar.bz2 |
gdb: remove breakpoint_find_if
Remove breakpoint_find_if, replace its sole usage with using
all_breakpoints directly instead. At the same time, change return
types to use bool.
Change-Id: I9ec392236b4804b362d16ab563330b9c07311106
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index feca224..f6c9683 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -627,19 +627,6 @@ static struct cmd_list_element *breakpoint_set_cmdlist; static struct cmd_list_element *breakpoint_show_cmdlist; struct cmd_list_element *save_cmdlist; -/* See declaration at breakpoint.h. */ - -struct breakpoint * -breakpoint_find_if (int (*func) (struct breakpoint *b, void *d), - void *user_data) -{ - for (breakpoint *b : all_breakpoints ()) - if (func (b, user_data) != 0) - return b; - - return nullptr; -} - /* Return whether a breakpoint is an active enabled breakpoint. */ static int breakpoint_enabled (struct breakpoint *b) |