mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Unify gdb puts functions
Now that filtered and unfiltered output can be treated identically, we can unify the puts family of functions. This is done under the name "gdb_puts". Most of this patch was written by script.
This commit is contained in:
@@ -187,7 +187,7 @@ do_show (const char *what, struct ui_file *file,
|
||||
const char *value)
|
||||
{
|
||||
cli_style_option *cso = (cli_style_option *) cmd->context ();
|
||||
fputs_filtered (_("The "), file);
|
||||
gdb_puts (_("The "), file);
|
||||
fprintf_styled (file, cso->style (), _("\"%s\" style"), cso->name ());
|
||||
fprintf_filtered (file, _(" %s is: %s\n"), what, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user