diff options
Diffstat (limited to 'gdb/d-valprint.c')
-rw-r--r-- | gdb/d-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c index 4b73c96..5f8ee94 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -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); |