aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-05-02 23:41:40 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-05-02 23:41:40 +0000
commitde4d072f96fdbe02f713796a853aa8f97eec7faa (patch)
treeb7b695f525115f0e19838aadbaecc22c867b23fe /gdb/ada-lang.c
parent93d4208d62742d98e665ea6fded3c0dde9011564 (diff)
downloadgdb-de4d072f96fdbe02f713796a853aa8f97eec7faa.zip
gdb-de4d072f96fdbe02f713796a853aa8f97eec7faa.tar.gz
gdb-de4d072f96fdbe02f713796a853aa8f97eec7faa.tar.bz2
* ada-lang.c (unwrap_value): Handle the case where the "F" field
inside a PAD type is a bitfield.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index d6441c4..3508a62 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);