From 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 2 Jan 2022 11:46:15 -0700 Subject: Unify gdb printf functions Now that filtered and unfiltered output can be treated identically, we can unify the printf family of functions. This is done under the name "gdb_printf". Most of this patch was written by script. --- gdb/event-top.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/event-top.c') diff --git a/gdb/event-top.c b/gdb/event-top.c index aa3b21be..b628f03 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -108,7 +108,7 @@ static void show_bt_on_fatal_signal (struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value) { - fprintf_filtered (file, _("Backtrace on a fatal signal is %s.\n"), value); + gdb_printf (file, _("Backtrace on a fatal signal is %s.\n"), value); } /* Signal handling variables. */ @@ -495,7 +495,7 @@ stdin_event_handler (int error, gdb_client_data client_data) if (main_ui == ui) { /* If stdin died, we may as well kill gdb. */ - fprintf_unfiltered (gdb_stderr, _("error detected on stdin\n")); + gdb_printf (gdb_stderr, _("error detected on stdin\n")); quit_command ((char *) 0, 0); } else @@ -1406,7 +1406,7 @@ static void show_debug_event_loop_command (struct ui_file *file, int from_tty, struct cmd_list_element *cmd, const char *value) { - fprintf_filtered (file, _("Event loop debugging is %s.\n"), value); + gdb_printf (file, _("Event loop debugging is %s.\n"), value); } void _initialize_event_top (); -- cgit v1.1