Replace xmalloc/xfree with vector in jit.c
[deliverable/binutils-gdb.git] / gdb / go-typeprint.c
index a76c3dc7ffb7ac4df2ec63102f29ce0ac755aa4e..ee7a2c234da478991ebb2a7ed216a0c7dee40e88 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing Go types for GDB, the GNU debugger.
 
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
 void
 go_print_type (struct type *type, const char *varstring,
-              struct ui_file *stream, int show, int level)
+              struct ui_file *stream, int show, int level,
+              const struct type_print_options *flags)
 {
   /* Borrowed from c-typeprint.c.  */
   if (show > 0)
-    CHECK_TYPEDEF (type);
+    type = check_typedef (type);
 
   /* Print the type of "abc" as "string", not char[4].  */
   if (TYPE_CODE (type) == TYPE_CODE_ARRAY
@@ -58,5 +59,5 @@ go_print_type (struct type *type, const char *varstring,
     }
 
   /* Punt the rest to C for now.  */
-  c_print_type (type, varstring, stream, show, level);
+  c_print_type (type, varstring, stream, show, level, flags);
 }
This page took 0.027375 seconds and 4 git commands to generate.