diff options
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r-- | gdb/go-lang.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c index dce7e6a..1ec5347 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. */ |