gdb/debuginfod: Whitespace-only URL should disable debuginfod
[binutils-gdb.git] / gdb / d-valprint.c
index 4b73c96857827ecb0022b32e110362d00820a7d5..647a0288cf0047b932d18356bbf15d725b67ff97 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing D values for GDB, the GNU debugger.
 
-   Copyright (C) 2008-2021 Free Software Foundation, Inc.
+   Copyright (C) 2008-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -55,7 +55,7 @@ dynamic_array_type (struct type *type,
       ptr_type = type->field (1).type ();
       elttype = check_typedef (TYPE_TARGET_TYPE (ptr_type));
       addr = unpack_pointer (ptr_type,
-                            valaddr + TYPE_FIELD_BITPOS (type, 1) / 8
+                            valaddr + type->field (1).loc_bitpos () / 8
                             + embedded_offset);
       true_type = check_typedef (elttype);