forked from Imagelibrary/binutils-gdb
gdb: use 'const' more in a couple of small breakpoint functions
Make the 'struct breakpoint *' argument 'const' in user_breakpoint_p and pending_breakpoint_p. And make the 'struct bp_location *' argument 'const' in bl_address_is_meaningful. There should be no user visible changes after this commit.
This commit is contained in:
@@ -2029,10 +2029,10 @@ extern int pc_at_non_inline_function (const address_space *aspace,
|
||||
CORE_ADDR pc,
|
||||
const target_waitstatus &ws);
|
||||
|
||||
extern int user_breakpoint_p (struct breakpoint *);
|
||||
extern int user_breakpoint_p (const breakpoint *);
|
||||
|
||||
/* Return true if this breakpoint is pending, false if not. */
|
||||
extern int pending_breakpoint_p (struct breakpoint *);
|
||||
extern int pending_breakpoint_p (const breakpoint *);
|
||||
|
||||
/* Attempt to determine architecture of location identified by SAL. */
|
||||
extern struct gdbarch *get_sal_arch (struct symtab_and_line sal);
|
||||
|
||||
Reference in New Issue
Block a user