X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgo-lang.c;h=1ec53474cf005f9181e91930aa15c5ad3ad93bed;hb=fbfb0a463fc7de88a2da8858ac5cd6c2f4796514;hp=dce7e6ab76968f6b13cf2447470868ee85790f85;hpb=6f8270197a2909607f2c076018e30677bbac652e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/go-lang.c b/gdb/go-lang.c index dce7e6ab76..1ec53474cf 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -532,7 +532,6 @@ extern const struct language_data go_language_data = c_printchar, /* Print a character constant. */ c_printstr, /* Function to print string constant. */ c_emit_char, /* Print a single char. */ - go_print_type, /* Print a type using appropriate syntax. */ c_print_typedef, /* Print a typedef using appropriate syntax. */ go_value_print_inner, /* la_value_print_inner */ @@ -626,6 +625,15 @@ public: *demangled = go_demangle (mangled, 0); return *demangled != NULL; } + + /* See language.h. */ + + void print_type (struct type *type, const char *varstring, + struct ui_file *stream, int show, int level, + const struct type_print_options *flags) const override + { + go_print_type (type, varstring, stream, show, level, flags); + } }; /* Single instance of the Go language class. */