+2019-10-01 Tom Tromey <tom@tromey.com>
+
+ * cli/cli-cmds.c (pwd_command): Style output.
+
2019-10-01 Pedro Alves <palves@redhat.com>
Tom Tromey <tom@tromey.com>
#include "cli/cli-script.h"
#include "cli/cli-setshow.h"
#include "cli/cli-cmds.h"
+#include "cli/cli-style.h"
#include "cli/cli-utils.h"
#include "extension.h"
safe_strerror (errno));
if (strcmp (cwd.get (), current_directory) != 0)
- printf_unfiltered (_("Working directory %s\n (canonically %s).\n"),
- current_directory, cwd.get ());
+ printf_unfiltered (_("Working directory %ps\n (canonically %ps).\n"),
+ styled_string (file_name_style.style (),
+ current_directory),
+ styled_string (file_name_style.style (), cwd.get ()));
else
- printf_unfiltered (_("Working directory %s.\n"), current_directory);
+ printf_unfiltered (_("Working directory %ps.\n"),
+ styled_string (file_name_style.style (),
+ current_directory));
}
void
+2019-10-01 Tom Tromey <tom@tromey.com>
+
+ * gdb.base/style.exp: Test "pwd".
+
2019-10-01 Tom Tromey <tom@tromey.com>
* gdb.base/style.exp: Update tests.
gdb_test "file $binfile" \
"Reading symbols from [style $quoted file]..." \
"filename is styled when loading symbol file"
+
+ gdb_test "pwd" "Working directory [style .*? file].*"
}