Remove "fix" call for "long long" from ARI
[deliverable/binutils-gdb.git] / gdb / m2-valprint.c
index 50c2b30a62d3197ee4e24deafdf39c7bdc41b408..4dc0fe18e6a785864467e3aaae7ac5746cb163f5 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing Modula 2 values for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2016 Free Software Foundation, Inc.
+   Copyright (C) 1986-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +28,7 @@
 #include "c-lang.h"
 #include "m2-lang.h"
 #include "target.h"
+#include "cli/cli-style.h"
 
 static int print_unpacked_pointer (struct type *type,
                                   CORE_ADDR address, CORE_ADDR addr,
@@ -92,7 +93,8 @@ m2_print_long_set (struct type *type, const gdb_byte *valaddr,
     }
   else
     {
-      fprintf_filtered (stream, " %s }", _("<unknown bounds of set>"));
+      fprintf_styled (stream, metadata_style.style (),
+                     " %s }", _("<unknown bounds of set>"));
       return;
     }
 
@@ -313,7 +315,6 @@ m2_val_print (struct type *type, int embedded_offset,
              struct value *original_value,
              const struct value_print_options *options)
 {
-  struct gdbarch *gdbarch = get_type_arch (type);
   unsigned len;
   struct type *elttype;
   CORE_ADDR addr;
@@ -408,8 +409,8 @@ m2_val_print (struct type *type, int embedded_offset,
       elttype = check_typedef (elttype);
       if (TYPE_STUB (elttype))
        {
-         fprintf_filtered (stream, _("<incomplete type>"));
-         gdb_flush (stream);
+         fprintf_styled (stream, metadata_style.style (),
+                         _("<incomplete type>"));
          break;
        }
       else
@@ -425,7 +426,8 @@ m2_val_print (struct type *type, int embedded_offset,
        maybe_bad_bstring:
          if (i < 0)
            {
-             fputs_filtered (_("<error value>"), stream);
+             fputs_styled (_("<error value>"), metadata_style.style (),
+                           stream);
              goto done;
            }
 
@@ -500,5 +502,4 @@ m2_val_print (struct type *type, int embedded_offset,
                         &m2_decorations);
       break;
     }
-  gdb_flush (stream);
 }
This page took 0.025957 seconds and 4 git commands to generate.