diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-30 12:25:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-05-06 12:03:34 -0600 |
commit | a67bcaba1c47a01826ed2769a41f84c533183ddf (patch) | |
tree | 31dbfdeb60f579357fe6de02ab0c2b206ee0bdb0 /gdb/breakpoint.c | |
parent | 7bd8631327cc222ebe0906d76e5faea4e4b291ba (diff) | |
download | binutils-a67bcaba1c47a01826ed2769a41f84c533183ddf.zip binutils-a67bcaba1c47a01826ed2769a41f84c533183ddf.tar.gz binutils-a67bcaba1c47a01826ed2769a41f84c533183ddf.tar.bz2 |
Constify breakpoint::print_one
This constifies breakpoint::print_one.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index e6158e6..195fa30 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -303,7 +303,7 @@ struct ranged_breakpoint : public ordinary_breakpoint const target_waitstatus &ws) override; int resources_needed (const struct bp_location *) override; enum print_stop_action print_it (const bpstat *bs) const override; - bool print_one (struct bp_location **) override; + bool print_one (bp_location **) const override; void print_one_detail (struct ui_out *) const override; void print_mention () override; void print_recreate (struct ui_file *fp) override; @@ -5922,7 +5922,7 @@ wrap_indent_at_field (struct ui_out *uiout, const char *col_name) */ static const char * -bp_condition_evaluator (struct breakpoint *b) +bp_condition_evaluator (const breakpoint *b) { char host_evals = 0; char target_evals = 0; @@ -5975,7 +5975,7 @@ bp_location_condition_evaluator (struct bp_location *bl) /* Print the LOC location out of the list of B->LOC locations. */ static void -print_breakpoint_location (struct breakpoint *b, +print_breakpoint_location (const breakpoint *b, struct bp_location *loc) { struct ui_out *uiout = current_uiout; @@ -9240,7 +9240,7 @@ ranged_breakpoint::print_it (const bpstat *bs) const /* Implement the "print_one" method for ranged breakpoints. */ bool -ranged_breakpoint::print_one (struct bp_location **last_loc) +ranged_breakpoint::print_one (bp_location **last_loc) const { struct bp_location *bl = loc; struct value_print_options opts; @@ -11514,7 +11514,7 @@ say_where (struct breakpoint *b) /* See breakpoint.h. */ -bp_location_range breakpoint::locations () +bp_location_range breakpoint::locations () const { return bp_location_range (this->loc); } |