summaryrefslogtreecommitdiff
path: root/gdb/break-catch-fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/break-catch-fork.c')
-rw-r--r--gdb/break-catch-fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/break-catch-fork.c b/gdb/break-catch-fork.c
index 1d01b95f018..1fbea571112 100644
--- a/gdb/break-catch-fork.c
+++ b/gdb/break-catch-fork.c
@@ -43,7 +43,7 @@ struct fork_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;
/* True if the breakpoint is for vfork, false for fork. */
@@ -160,7 +160,7 @@ fork_catchpoint::print_one (bp_location **last_loc) const
/* Implement the "print_mention" method for fork catchpoints. */
void
-fork_catchpoint::print_mention ()
+fork_catchpoint::print_mention () const
{
gdb_printf (_("Catchpoint %d (%s)"), number,
is_vfork ? "vfork" : "fork");