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
This commit is contained in:
Simon Marchi
2021-08-30 16:10:41 -04:00
parent 88ae41e179
commit 9fe3819e83
4 changed files with 15 additions and 44 deletions

View File

@ -4458,7 +4458,7 @@ handle_syscall_event (struct execution_control_state *ecs)
ecs->event_thread->set_stop_pc (regcache_read_pc (regcache));
if (catch_syscall_enabled () > 0
&& catching_syscall_number (syscall_number) > 0)
&& catching_syscall_number (syscall_number))
{
infrun_debug_printf ("syscall number=%d", syscall_number);