forked from Imagelibrary/binutils-gdb
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:
@@ -885,20 +885,6 @@ struct watchpoint : public breakpoint
|
||||
CORE_ADDR hw_wp_mask;
|
||||
};
|
||||
|
||||
/* Given a function FUNC (struct breakpoint *B, void *DATA) and
|
||||
USER_DATA, call FUNC for every known breakpoint passing USER_DATA
|
||||
as argument.
|
||||
|
||||
If FUNC returns 1, the loop stops and the current
|
||||
'struct breakpoint' being processed is returned. If FUNC returns
|
||||
zero, the loop continues.
|
||||
|
||||
This function returns either a 'struct breakpoint' pointer or NULL.
|
||||
It was based on BFD's bfd_sections_find_if function. */
|
||||
|
||||
extern struct breakpoint *breakpoint_find_if
|
||||
(int (*func) (struct breakpoint *b, void *d), void *user_data);
|
||||
|
||||
/* Return true if BPT is either a software breakpoint or a hardware
|
||||
breakpoint. */
|
||||
|
||||
@@ -1678,8 +1664,8 @@ extern int catch_syscall_enabled (void);
|
||||
|
||||
/* Checks if we are catching syscalls with the specific
|
||||
syscall_number. Used for "filtering" the catchpoints.
|
||||
Returns 0 if not, greater than 0 if we are. */
|
||||
extern int catching_syscall_number (int syscall_number);
|
||||
Returns false if not, true if we are. */
|
||||
extern bool catching_syscall_number (int syscall_number);
|
||||
|
||||
/* Return a tracepoint with the given number if found. */
|
||||
extern struct tracepoint *get_tracepoint (int num);
|
||||
|
||||
Reference in New Issue
Block a user