Change objfile::partial_symtabs to be a unique_ptr
[deliverable/binutils-gdb.git] / gdb / go-valprint.c
index eda40f8ed8b3daf62a263417271a00981bf53b70..64761b98221dc3979abef7f81b83d21163c0147c 100644 (file)
@@ -29,6 +29,7 @@
 #include "go-lang.h"
 #include "c-lang.h"
 #include "valprint.h"
+#include "cli/cli-style.h"
 
 /* Print a Go string.
 
@@ -71,9 +72,9 @@ print_go_string (struct type *type,
 
   if (length < 0)
     {
-      fputs_filtered (_("<invalid length: "), stream);
-      fputs_filtered (plongest (addr), stream);
-      fputs_filtered (">", stream);
+      printf_filtered (_("<invalid length: %ps>"),
+                      styled_string (metadata_style.style (),
+                                     plongest (addr)));
       return;
     }
 
This page took 0.024801 seconds and 4 git commands to generate.