Replace uses of "title" style with "command"

Currently the "title" style is only used when printing command names.
The "title" name itself is probably a misnomer, but meanwhile this
patch changes the existing uses to instead use the new "command" style
for consistency.

The "title" style is not removed; see the next patch.

Reviewed-By: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
Tom Tromey
2024-10-03 16:25:05 -06:00
parent 9e69a2e127
commit b5f91cd4df
4 changed files with 17 additions and 16 deletions

View File

@@ -1667,7 +1667,7 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name,
gdb_printf (stream, "User %scommand \"",
c->is_prefix () ? "prefix" : "");
fprintf_styled (stream, title_style.style (), "%s%s",
fprintf_styled (stream, command_style.style (), "%s%s",
prefix, name);
gdb_printf (stream, "\":\n");
if (cmdlines)