--- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -13418,6 +13418,18 @@ dprintf_re_set (struct breakpoint *b) update_dprintf_command_list (b); } +/* Implement the "check_status" breakpoint_ops method for dprintf. */ + +static void +dprintf_check_status (struct bpstats *bs) +{ + if (strcmp (dprintf_style, dprintf_style_agent) == 0) + { + bs->stop = 0; + bs->print_it = print_it_noop; + } +} + /* Implement the "print_recreate" breakpoint_ops method for dprintf. */ static void @@ -15958,6 +15970,7 @@ initialize_breakpoint_ops (void) ops = &dprintf_breakpoint_ops; *ops = bkpt_base_breakpoint_ops; ops->re_set = dprintf_re_set; + ops->check_status = dprintf_check_status; ops->resources_needed = bkpt_resources_needed; ops->print_it = bkpt_print_it; ops->print_mention = bkpt_print_mention;