aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-syscall.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-30 12:31:15 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:34 -0600
commitb713485d666a822a9e65c0272c8d7de51baa8b5f (patch)
treeffaa0436bdee2688deabb70bd3bf6c97fc6450c4 /gdb/break-catch-syscall.c
parenta67bcaba1c47a01826ed2769a41f84c533183ddf (diff)
downloadbinutils-b713485d666a822a9e65c0272c8d7de51baa8b5f.zip
binutils-b713485d666a822a9e65c0272c8d7de51baa8b5f.tar.gz
binutils-b713485d666a822a9e65c0272c8d7de51baa8b5f.tar.bz2
Constify breakpoint::print_mention
This constifies breakpoint::print_mention.
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 e7810cb..721a87c 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -46,7 +46,7 @@ struct syscall_catchpoint : public breakpoint
const target_waitstatus &ws) override;
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
- void print_mention () override;
+ void print_mention () const override;
void print_recreate (struct ui_file *fp) override;
/* Syscall numbers used for the 'catch syscall' feature. If no
@@ -284,7 +284,7 @@ syscall_catchpoint::print_one (bp_location **last_loc) const
/* Implement the "print_mention" method for syscall catchpoints. */
void
-syscall_catchpoint::print_mention ()
+syscall_catchpoint::print_mention () const
{
struct gdbarch *gdbarch = loc->gdbarch;