aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-12-09 10:50:37 +0000
committerAndrew Burgess <aburgess@redhat.com>2024-12-09 10:53:43 +0000
commitae2a96659a0960b850f3a368702cb3b8d3f38d2e (patch)
tree261139e2a45ec2865c33c2bc7a75daa530abeb47 /gdb/breakpoint.h
parent3d75969bd0e2608dc2c23aeee3f2f597b44fa7cc (diff)
downloadbinutils-ae2a96659a0960b850f3a368702cb3b8d3f38d2e.zip
binutils-ae2a96659a0960b850f3a368702cb3b8d3f38d2e.tar.gz
binutils-ae2a96659a0960b850f3a368702cb3b8d3f38d2e.tar.bz2
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.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 1c890f7..be127a9 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -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);