From de4d072f96fdbe02f713796a853aa8f97eec7faa Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 2 May 2008 23:41:40 +0000 Subject: [PATCH] * ada-lang.c (unwrap_value): Handle the case where the "F" field inside a PAD type is a bitfield. --- gdb/ChangeLog | 5 +++++ gdb/ada-lang.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 496c75ce442..691245164d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-02 Joel Brobecker + + * ada-lang.c (unwrap_value): Handle the case where the "F" field + inside a PAD type is a bitfield. + 2008-05-02 Ulrich Weigand * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index d6441c49a0a..3508a6264ca 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -7973,8 +7973,7 @@ unwrap_value (struct value *val) struct type *type = ada_check_typedef (value_type (val)); if (ada_is_aligner_type (type)) { - struct value *v = value_struct_elt (&val, NULL, "F", - NULL, "internal structure"); + struct value *v = ada_value_struct_elt (val, "F", 0); struct type *val_type = ada_check_typedef (value_type (v)); if (ada_type_name (val_type) == NULL) TYPE_NAME (val_type) = ada_type_name (type); -- 2.30.2