X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgo-typeprint.c;h=c334914398d1a027ef9fbf4079c2b27fc46d54d6;hb=d27c357a5b83773054e85ff3ea5dbfe18b9dd3c0;hp=e30e59802ab0eab0e54b8d1efaa48f60d8d3cd2a;hpb=61baf725eca99af2569262d10aca03dcde2698f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/go-typeprint.c b/gdb/go-typeprint.c index e30e59802a..c334914398 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-2017 Free Software Foundation, Inc. + Copyright (C) 2012-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -51,8 +51,8 @@ go_print_type (struct type *type, const char *varstring, type = check_typedef (type); /* Print the type of "abc" as "string", not char[4]. */ - if (TYPE_CODE (type) == TYPE_CODE_ARRAY - && TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_CHAR) + if (type->code () == TYPE_CODE_ARRAY + && TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_CHAR) { fputs_filtered ("string", stream); return;