gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / go-valprint.c
index 79b3ad58d5a2f1a185f44811a92d95e15af3e82e..1933e98ed29e3daca53082e9722ee44b4a865eed 100644 (file)
@@ -84,45 +84,6 @@ print_go_string (struct type *type,
   val_print_string (elt_type, NULL, addr, length, stream, options);
 }
 
-/* Implements the la_val_print routine for language Go.  */
-
-void
-go_val_print (struct type *type, int embedded_offset,
-             CORE_ADDR address, struct ui_file *stream, int recurse,
-             struct value *val,
-             const struct value_print_options *options)
-{
-  type = check_typedef (type);
-
-  switch (TYPE_CODE (type))
-    {
-      case TYPE_CODE_STRUCT:
-       {
-         enum go_type go_type = go_classify_struct_type (type);
-
-         switch (go_type)
-           {
-           case GO_TYPE_STRING:
-             if (! options->raw)
-               {
-                 print_go_string (type, embedded_offset, address,
-                                  stream, recurse, val, options);
-                 return;
-               }
-             break;
-           default:
-             break;
-           }
-       }
-       /* Fall through.  */
-
-      default:
-       c_val_print (type, embedded_offset, address, stream,
-                    recurse, val, options);
-       break;
-    }
-}
-
 /* See go-lang.h.  */
 
 void
@@ -131,7 +92,7 @@ go_value_print_inner (struct value *val, struct ui_file *stream,
 {
   struct type *type = check_typedef (value_type (val));
 
-  switch (TYPE_CODE (type))
+  switch (type->code ())
     {
       case TYPE_CODE_STRUCT:
        {
This page took 0.026548 seconds and 4 git commands to generate.