diff options
author | Tom Tromey <tom@tromey.com> | 2019-09-19 07:31:28 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-10-01 15:12:41 -0600 |
commit | d770d56f42e77f4ee1008ae223dacd3658305297 (patch) | |
tree | 554ef2fe75d7d10920b89012f05b9721417f5b68 /gdb/testsuite | |
parent | 9d636d67e0ddf223c6e9127dc058afdb48a7012f (diff) | |
download | gdb-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/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/style.exp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 784daf2..123d3b0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2019-10-01 Tom Tromey <tom@tromey.com> + * gdb.base/style.exp: Test "show logging filename". + +2019-10-01 Tom Tromey <tom@tromey.com> + * lib/gdb-utils.exp (style): Handle "metadata" argument. * gdb.base/style.exp: Add metadata style test. diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index 0f812f7..72b5f4e 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -137,4 +137,7 @@ save_vars { env(TERM) } { gdb_test_no_output "set print repeat 3" gdb_test "print {0,0,0,0,0,0,0,0}" \ " = \\{0 [style {<repeats.*8.*times>} metadata]\\}" + + gdb_test "show logging file" \ + "The current logfile is \"[style .*? file]\"\\..*" } |