diff options
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r-- | gdb/go-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c index c56db23..92d7e60 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -86,7 +86,7 @@ gccgo_string_p (struct type *type) && type1->code () == TYPE_CODE_INT && strcmp (type->field (1).name (), "__length") == 0) { - struct type *target_type = TYPE_TARGET_TYPE (type0); + struct type *target_type = type0->target_type (); target_type = check_typedef (target_type); |