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
This commit is contained in:
Tom Tromey
2019-12-02 17:17:45 -07:00
parent 8d70a9f093
commit 2dbc041e4e
5 changed files with 24 additions and 15 deletions

View File

@ -865,9 +865,9 @@ pascal_object_print_static_field (struct value *val,
{
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;
}
}