aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-05-18 11:35:32 -0600
committerTom Tromey <tom@tromey.com>2024-12-12 20:18:23 -0700
commit9e69a2e127940cc577d4e0c6eefdfe33a31ea397 (patch)
tree2cd18c8f6560a6089bf1a88de3dcb86797a3c05d /gdb/infcmd.c
parent62e4d4d3ad68fe17113069b99d80a9ee9df87cb1 (diff)
downloadbinutils-9e69a2e127940cc577d4e0c6eefdfe33a31ea397.zip
binutils-9e69a2e127940cc577d4e0c6eefdfe33a31ea397.tar.gz
binutils-9e69a2e127940cc577d4e0c6eefdfe33a31ea397.tar.bz2
Introduce "command" styling
This adds a new "command" style that is used when styling the name of a gdb command. Note that not every instance of a command name that is output by gdb is changed here. There is currently no way to style error() strings, and there is no way to mark up command help strings. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31747 Reviewed-By: Eli Zaretskii <eliz@gnu.org> Reviewed-By: Keith Seitz <keiths@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 5c0e3f5..9fcbadb 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -27,6 +27,7 @@
#include "gdbsupport/environ.h"
#include "value.h"
#include "cli/cli-cmds.h"
+#include "cli/cli-style.h"
#include "symfile.h"
#include "gdbcore.h"
#include "target.h"
@@ -1999,10 +2000,9 @@ info_program_command (const char *args, int from_tty)
}
if (from_tty)
- {
- gdb_printf (_("Type \"info stack\" or \"info "
- "registers\" for more information.\n"));
- }
+ gdb_printf (_("Type \"%ps\" or \"%ps\" for more information.\n"),
+ styled_string (command_style.style (), "info stack"),
+ styled_string (command_style.style (), "info registers"));
}
static void