Use filtered output in show callbacks

"show" command callbacks, like most ordinary gdb commands, should use
filtered output.  I found a few that did not, so this patch changes
them to use the filtered form.
This commit is contained in:
Tom Tromey 2021-12-29 11:05:51 -07:00
parent 7514a66128
commit 3de0d96078
4 changed files with 15 additions and 15 deletions

View file

@ -299,9 +299,9 @@ static void
show_debuginfod_enabled (ui_file *file, int from_tty, cmd_list_element *cmd,
const char *value)
{
fprintf_unfiltered (file,
_("Debuginfod functionality is currently set to "
"\"%s\".\n"), debuginfod_enabled);
fprintf_filtered (file,
_("Debuginfod functionality is currently set to "
"\"%s\".\n"), debuginfod_enabled);
}
/* Set callback for "set debuginfod urls". */
@ -342,7 +342,7 @@ show_debuginfod_urls (ui_file *file, int from_tty, cmd_list_element *cmd,
const char *value)
{
if (value[0] == '\0')
fprintf_unfiltered (file, _("Debuginfod URLs have not been set.\n"));
fprintf_filtered (file, _("Debuginfod URLs have not been set.\n"));
else
fprintf_filtered (file, _("Debuginfod URLs are currently set to:\n%s\n"),
value);