X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgo-typeprint.c;h=763ae54d07a0eec863682205ea18d3792a513f4a;hb=b4991d292edd84c16bd2050bd071198ceae764fe;hp=9bc0a0ac98bf42feb518594ce8effc396917d9af;hpb=28e7fd62340426746f9c896cbc40c5d374ec47aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/go-typeprint.c b/gdb/go-typeprint.c index 9bc0a0ac98..763ae54d07 100644 --- a/gdb/go-typeprint.c +++ b/gdb/go-typeprint.c @@ -1,6 +1,6 @@ /* Support for printing Go types for GDB, the GNU debugger. - Copyright (C) 2012-2013 Free Software Foundation, Inc. + Copyright (C) 2012-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -48,7 +48,7 @@ go_print_type (struct type *type, const char *varstring, { /* 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