aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/go-valprint.c')
-rw-r--r--gdb/go-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-valprint.c b/gdb/go-valprint.c
index 45bd529..e104376 100644
--- a/gdb/go-valprint.c
+++ b/gdb/go-valprint.c
@@ -45,7 +45,7 @@ print_go_string (struct type *type,
{
struct gdbarch *gdbarch = type->arch ();
struct type *elt_ptr_type = type->field (0).type ();
- struct type *elt_type = TYPE_TARGET_TYPE (elt_ptr_type);
+ struct type *elt_type = elt_ptr_type->target_type ();
LONGEST length;
/* TODO(dje): The encapsulation of what a pointer is belongs in value.c.
I.e. If there's going to be unpack_pointer, there should be