Remove redundant test in BFD_ASSERT
[deliverable/binutils-gdb.git] / gdb / typeprint.c
index 82ca5f17474a6ac2e0c2092c4db69d7b5819cf7e..93d3b7b056e18fc687b1533ebcf3c9b2fa357cb8 100644 (file)
@@ -90,7 +90,7 @@ typedef_print (struct type *type, struct symbol *new, struct ui_file *stream)
       break;
 #endif
     default:
-      error ("Language not supported.");
+      error (_("Language not supported."));
     }
   fprintf_filtered (stream, ";\n");
 }
@@ -133,7 +133,7 @@ whatis_exp (char *exp, int show)
   else
     val = access_value_history (0);
 
-  type = VALUE_TYPE (val);
+  type = value_type (val);
 
   if (objectprint)
     {
@@ -306,11 +306,11 @@ print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
     case TYPE_CODE_METHOD:
     case TYPE_CODE_REF:
     case TYPE_CODE_NAMESPACE:
-      error ("internal error: unhandled type in print_type_scalar");
+      error (_("internal error: unhandled type in print_type_scalar"));
       break;
 
     default:
-      error ("Invalid type code in symbol table.");
+      error (_("Invalid type code in symbol table."));
     }
   gdb_flush (stream);
 }
@@ -341,7 +341,7 @@ maintenance_print_type (char *typename, int from_tty)
          /* The user expression may name a type indirectly by naming an
             object of that type.  Find that indirectly named type. */
          val = evaluate_type (expr);
-         type = VALUE_TYPE (val);
+         type = value_type (val);
        }
       if (type != NULL)
        {
This page took 0.024242 seconds and 4 git commands to generate.