diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:46:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch) | |
tree | 641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/infcall.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.bz2 |
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.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index f8c812c..5365f97 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -62,9 +62,9 @@ show_may_call_functions_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, - _("Permission to call functions in the program is %s.\n"), - value); + gdb_printf (file, + _("Permission to call functions in the program is %s.\n"), + value); } /* How you should pass arguments to a function depends on whether it @@ -92,10 +92,10 @@ static void show_coerce_float_to_double_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, - _("Coercion of floats to doubles " - "when calling functions is %s.\n"), - value); + gdb_printf (file, + _("Coercion of floats to doubles " + "when calling functions is %s.\n"), + value); } /* This boolean tells what gdb should do if a signal is received while @@ -110,10 +110,10 @@ static void show_unwind_on_signal_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, - _("Unwinding of stack if a signal is " - "received while in a call dummy is %s.\n"), - value); + gdb_printf (file, + _("Unwinding of stack if a signal is " + "received while in a call dummy is %s.\n"), + value); } /* This boolean tells what gdb should do if a std::terminate call is @@ -136,10 +136,10 @@ show_unwind_on_terminating_exception_p (struct ui_file *file, int from_tty, const char *value) { - fprintf_filtered (file, - _("Unwind stack if a C++ exception is " - "unhandled while in a call dummy is %s.\n"), - value); + gdb_printf (file, + _("Unwind stack if a C++ exception is " + "unhandled while in a call dummy is %s.\n"), + value); } /* Perform the standard coercions that are specified |