aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-syscall.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-30 12:25:36 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:34 -0600
commita67bcaba1c47a01826ed2769a41f84c533183ddf (patch)
tree31dbfdeb60f579357fe6de02ab0c2b206ee0bdb0 /gdb/break-catch-syscall.c
parent7bd8631327cc222ebe0906d76e5faea4e4b291ba (diff)
downloadgdb-a67bcaba1c47a01826ed2769a41f84c533183ddf.zip
gdb-a67bcaba1c47a01826ed2769a41f84c533183ddf.tar.gz
gdb-a67bcaba1c47a01826ed2769a41f84c533183ddf.tar.bz2
Constify breakpoint::print_one
This constifies breakpoint::print_one.
Diffstat (limited to 'gdb/break-catch-syscall.c')
-rw-r--r--gdb/break-catch-syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c
index 5b7cd1a..e7810cb 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -45,7 +45,7 @@ struct syscall_catchpoint : public breakpoint
CORE_ADDR bp_addr,
const target_waitstatus &ws) 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_mention () override;
void print_recreate (struct ui_file *fp) override;
@@ -231,7 +231,7 @@ syscall_catchpoint::print_it (const bpstat *bs) const
/* Implement the "print_one" method for syscall catchpoints. */
bool
-syscall_catchpoint::print_one (struct bp_location **last_loc)
+syscall_catchpoint::print_one (bp_location **last_loc) const
{
struct value_print_options opts;
struct ui_out *uiout = current_uiout;