aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r--gdb/go-lang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index b48467d..2835dd9 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -77,8 +77,8 @@ gccgo_string_p (struct type *type)
struct type *type0 = TYPE_FIELD_TYPE (type, 0);
struct type *type1 = TYPE_FIELD_TYPE (type, 1);
- CHECK_TYPEDEF (type0);
- CHECK_TYPEDEF (type1);
+ type0 = check_typedef (type0);
+ type1 = check_typedef (type1);
if (TYPE_CODE (type0) == TYPE_CODE_PTR
&& strcmp (TYPE_FIELD_NAME (type, 0), "__data") == 0
@@ -87,7 +87,7 @@ gccgo_string_p (struct type *type)
{
struct type *target_type = TYPE_TARGET_TYPE (type0);
- CHECK_TYPEDEF (target_type);
+ target_type = check_typedef (target_type);
if (TYPE_CODE (target_type) == TYPE_CODE_INT
&& TYPE_LENGTH (target_type) == 1
@@ -119,7 +119,7 @@ sixg_string_p (struct type *type)
enum go_type
go_classify_struct_type (struct type *type)
{
- CHECK_TYPEDEF (type);
+ type = check_typedef (type);
/* Recognize strings as they're useful to be able to print without
pretty-printers. */