X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fd-valprint.c;h=38fb2a07c1f30407cb321eebe3bb68a219b26b67;hb=99d9c3b92ca96a7425cbb6b1bf453ede9477a2ee;hp=bebe02c967ccebb146fcdf8bd6a24cd3496b0689;hpb=391f86284f6fff1011ace7136f4bd2bb438de3c6;p=binutils-gdb.git diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c index bebe02c967c..38fb2a07c1f 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -38,9 +38,8 @@ dynamic_array_type (struct type *type, && type->field (0).type ()->code () == TYPE_CODE_INT && strcmp (type->field (0).name (), "length") == 0 && strcmp (type->field (1).name (), "ptr") == 0 - && !value_bits_any_optimized_out (val, - TARGET_CHAR_BIT * embedded_offset, - TARGET_CHAR_BIT * type->length ())) + && !val->bits_any_optimized_out (TARGET_CHAR_BIT * embedded_offset, + TARGET_CHAR_BIT * type->length ())) { CORE_ADDR addr; struct type *elttype; @@ -48,7 +47,7 @@ dynamic_array_type (struct type *type, struct type *ptr_type; struct value *ival; int length; - const gdb_byte *valaddr = value_contents_for_printing (val).data (); + const gdb_byte *valaddr = val->contents_for_printing ().data (); length = unpack_field_as_long (type, valaddr + embedded_offset, 0); @@ -82,7 +81,7 @@ d_value_print_inner (struct value *val, struct ui_file *stream, int recurse, { case TYPE_CODE_STRUCT: ret = dynamic_array_type (type, val->embedded_offset (), - value_address (val), + val->address (), stream, recurse, val, options); if (ret == 0) break;