aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-16 20:05:18 -0700
committerTom Tromey <tom@tromey.com>2022-04-29 16:14:32 -0600
commita678887d09c00cecb9aec39cd15f8c65e603078e (patch)
tree59a9b3db5d5889cc7ba81aeb7a3a739954584977 /gdb/breakpoint.c
parent8613a476b198e67ecd645cf74befe9a0dad255b3 (diff)
downloadbinutils-a678887d09c00cecb9aec39cd15f8c65e603078e.zip
binutils-a678887d09c00cecb9aec39cd15f8c65e603078e.tar.gz
binutils-a678887d09c00cecb9aec39cd15f8c65e603078e.tar.bz2
Constify breakpoint_ops
Now that all breakpoint_ops are statically initialized, they can all be made const.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b6541b5..c356888 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -243,21 +243,21 @@ static void tracepoint_probe_create_sals_from_location
struct linespec_result *canonical,
enum bptype type_wanted);
-struct breakpoint_ops base_breakpoint_ops =
+const struct breakpoint_ops base_breakpoint_ops =
{
create_sals_from_location_default,
create_breakpoints_sal_default,
};
/* Breakpoints set on probes. */
-static struct breakpoint_ops bkpt_probe_breakpoint_ops =
+static const struct breakpoint_ops bkpt_probe_breakpoint_ops =
{
bkpt_probe_create_sals_from_location,
create_breakpoints_sal_default,
};
/* Tracepoints set on probes. */
-static struct breakpoint_ops tracepoint_probe_breakpoint_ops =
+static const struct breakpoint_ops tracepoint_probe_breakpoint_ops =
{
tracepoint_probe_create_sals_from_location,
create_breakpoints_sal_default,
@@ -13735,7 +13735,7 @@ ftrace_command (const char *arg, int from_tty)
static void
strace_command (const char *arg, int from_tty)
{
- struct breakpoint_ops *ops;
+ const struct breakpoint_ops *ops;
event_location_up location;
enum bptype type;