aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-12-02 17:17:45 -0700
committerTom Tromey <tom@tromey.com>2019-12-04 14:27:36 -0700
commit2dbc041e4e9e7325de2794d11e9ef5a8c4f6b02d (patch)
tree5affcbd80aa2b83a91017b5a0333fa46b5c992e6 /gdb/valprint.c
parent8d70a9f0938b9e9efc4fd2eee80cf806b5e97a4a (diff)
downloadgdb-2dbc041e4e9e7325de2794d11e9ef5a8c4f6b02d.zip
gdb-2dbc041e4e9e7325de2794d11e9ef5a8c4f6b02d.tar.gz
gdb-2dbc041e4e9e7325de2794d11e9ef5a8c4f6b02d.tar.bz2
Use metadata style in a few more places
I happened to find a few more spots that should use metadata style, but do not. I missed these in my earlier search somehow. This patch also adds gettext markup in a couple of spots where it was missing. gdb/ChangeLog 2019-12-04 Tom Tromey <tom@tromey.com> * valprint.c (val_print_string): Use metadata_style. * go-valprint.c (print_go_string): Use metadata style. * p-valprint.c (pascal_object_print_static_field): Use metadata style. * cp-valprint.c (cp_print_static_field): Use metadata style. Change-Id: Id82ca2aa306c6694b111d5c92dfa6f0cce919ebf
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index ced0dbc..1e3071b 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -2897,9 +2897,9 @@ val_print_string (struct type *elttype, const char *encoding,
{
std::string str = memory_error_message (TARGET_XFER_E_IO, gdbarch, addr);
- fprintf_filtered (stream, "<error: ");
- fputs_filtered (str.c_str (), stream);
- fprintf_filtered (stream, ">");
+ fprintf_filtered (stream, _("<error: %ps>"),
+ styled_string (metadata_style.style (),
+ str.c_str ()));
}
return (bytes_read / width);