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 e04ea6b..5001e67 100644
--- a/gdb/go-valprint.c
+++ b/gdb/go-valprint.c
@@ -52,7 +52,7 @@ print_go_string (struct type *type,
unpack_value_field_as_pointer. Do this until we can get
unpack_value_field_as_pointer. */
LONGEST addr;
- const gdb_byte *valaddr = value_contents_for_printing (val);
+ const gdb_byte *valaddr = value_contents_for_printing (val).data ();
if (! unpack_value_field_as_long (type, valaddr, embedded_offset, 0,