summaryrefslogtreecommitdiff
path: root/gdb/cp-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/cp-valprint.c
parent8d70a9f0938b9e9efc4fd2eee80cf806b5e97a4a (diff)
downloadbinutils-gdb-2dbc041e4e9e7325de2794d11e9ef5a8c4f6b02d.tar.gz
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/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index e445d42d3fa..0ec84f6799e 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -638,9 +638,9 @@ cp_print_static_field (struct type *type,
{
if (value_address (val) == first_dont_print[i])
{
- fputs_filtered ("<same as static member of an already"
- " seen type>",
- stream);
+ fputs_styled (_("<same as static member of an already"
+ " seen type>"),
+ metadata_style.style (), stream);
return;
}
}
@@ -670,9 +670,9 @@ cp_print_static_field (struct type *type,
{
if (target_type == first_dont_print[i])
{
- fputs_filtered ("<same as static member of an already"
- " seen type>",
- stream);
+ fputs_styled (_("<same as static member of an already"
+ " seen type>"),
+ metadata_style.style (), stream);
return;
}
}