Introduce metadata style
[deliverable/binutils-gdb.git] / gdb / rust-lang.c
index 79f13311cd8f7f0ce2af55e87de9a83819ee1f30..cef0a9cb092e58c6a012c50660d722bf5d0092a3 100644 (file)
@@ -37,6 +37,7 @@
 #include <algorithm>
 #include <string>
 #include <vector>
+#include "cli/cli-style.h"
 
 /* See rust-lang.h.  */
 
@@ -473,7 +474,9 @@ rust_print_enum (struct type *type, int embedded_offset,
   if (rust_empty_enum_p (type))
     {
       /* Print the enum type name here to be more clear.  */
-      fprintf_filtered (stream, _("%s {<No data fields>}"), TYPE_NAME (type));
+      fprintf_filtered (stream, _("%s {%p[<No data fields>%p]}"),
+                       TYPE_NAME (type),
+                       metadata_style.style ().ptr (), nullptr);
       return;
     }
 
This page took 0.024071 seconds and 4 git commands to generate.