aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-syscall.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-30 12:36:08 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:34 -0600
commit4d1ae558932c17415bbe5b0dbec0a7539a19b6d5 (patch)
tree112b526c892a406aafa7e66592e575953a6f5336 /gdb/break-catch-syscall.c
parentb713485d666a822a9e65c0272c8d7de51baa8b5f (diff)
downloadgdb-4d1ae558932c17415bbe5b0dbec0a7539a19b6d5.zip
gdb-4d1ae558932c17415bbe5b0dbec0a7539a19b6d5.tar.gz
gdb-4d1ae558932c17415bbe5b0dbec0a7539a19b6d5.tar.bz2
Constify breakpoint::print_recreate
This constifies breakpoint::print_recreate.
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 721a87c..bcdf0f1 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -47,7 +47,7 @@ struct syscall_catchpoint : public breakpoint
enum print_stop_action print_it (const bpstat *bs) const override;
bool print_one (bp_location **) const override;
void print_mention () const override;
- void print_recreate (struct ui_file *fp) override;
+ void print_recreate (struct ui_file *fp) const override;
/* Syscall numbers used for the 'catch syscall' feature. If no
syscall has been specified for filtering, it is empty.
@@ -314,7 +314,7 @@ syscall_catchpoint::print_mention () const
/* Implement the "print_recreate" method for syscall catchpoints. */
void
-syscall_catchpoint::print_recreate (struct ui_file *fp)
+syscall_catchpoint::print_recreate (struct ui_file *fp) const
{
struct gdbarch *gdbarch = loc->gdbarch;