aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-09-19 07:31:28 -0600
committerTom Tromey <tom@tromey.com>2019-10-01 15:12:41 -0600
commitd770d56f42e77f4ee1008ae223dacd3658305297 (patch)
tree554ef2fe75d7d10920b89012f05b9721417f5b68 /gdb/cli
parent9d636d67e0ddf223c6e9127dc058afdb48a7012f (diff)
downloadgdb-d770d56f42e77f4ee1008ae223dacd3658305297.zip
gdb-d770d56f42e77f4ee1008ae223dacd3658305297.tar.gz
gdb-d770d56f42e77f4ee1008ae223dacd3658305297.tar.bz2
Use styled_string for "show logging filename"
This changes "show logging filename" to style its output. gdb/ChangeLog 2019-10-01 Tom Tromey <tom@tromey.com> * cli/cli-logging.c (show_logging_filename): Use styled_string. gdb/testsuite/ChangeLog 2019-10-01 Tom Tromey <tom@tromey.com> * gdb.base/style.exp: Test "show logging filename".
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-logging.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index 22b540b..e20ebd5 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -21,6 +21,7 @@
#include "gdbcmd.h"
#include "ui-out.h"
#include "interps.h"
+#include "cli/cli-style.h"
static char *saved_filename;
@@ -29,8 +30,8 @@ static void
show_logging_filename (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- fprintf_filtered (file, _("The current logfile is \"%s\".\n"),
- value);
+ fprintf_filtered (file, _("The current logfile is \"%ps\".\n"),
+ styled_string (file_name_style.style (), value));
}
static bool logging_overwrite;