Arm: Change CRC from fpu feature to archititectural extension
[deliverable/binutils-gdb.git] / gdb / c-valprint.c
index c4c0918e26afe58dc488f0d1ba2a39af4b1bddd7..58675f6d9dffe08bfbde968c9a6ff2821a1f1e6e 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing C values for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2018 Free Software Foundation, Inc.
+   Copyright (C) 1986-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -197,7 +197,6 @@ print_unpacked_pointer (struct type *type, struct type *elttype,
          struct value *vt_val;
          struct symbol *wsym = NULL;
          struct type *wtype;
-         struct block *block = NULL;
 
          if (want_space)
            fputs_filtered (" ", stream);
@@ -206,7 +205,7 @@ print_unpacked_pointer (struct type *type, struct type *elttype,
            {
              const char *search_name
                = MSYMBOL_SEARCH_NAME (msymbol.minsym);
-             wsym = lookup_symbol_search_name (search_name, block,
+             wsym = lookup_symbol_search_name (search_name, NULL,
                                                VAR_DOMAIN).symbol;
            }
 
@@ -248,8 +247,7 @@ c_val_print_array (struct type *type, const gdb_byte *valaddr,
     {
       LONGEST low_bound, high_bound;
       int eltlen, len;
-      struct gdbarch *gdbarch = get_type_arch (type);
-      enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
+      enum bfd_endian byte_order = type_byte_order (type);
       unsigned int i = 0;      /* Number of characters printed.  */
 
       if (!get_array_bounds (type, &low_bound, &high_bound))
@@ -564,7 +562,6 @@ c_val_print (struct type *type,
                         &c_decorations);
       break;
     }
-  gdb_flush (stream);
 }
 \f
 void
This page took 0.024268 seconds and 4 git commands to generate.