From 6cdd57f45ddc8636b0cb899448bf62aaf467e97c Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 24 Mar 2009 02:08:23 +0000 Subject: [PATCH] * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs before looking up the fields inside our struct type. --- gdb/ChangeLog | 5 +++++ gdb/ada-exp.y | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa9fcd3db24..d03cb2b9f92 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-03-23 Joel Brobecker + + * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs + before looking up the fields inside our struct type. + 2009-03-23 Joel Brobecker * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index 0da0caac1cd..ee0fcf3ba2a 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -1207,6 +1207,7 @@ get_symbol_field_type (struct symbol *sym, char *encoded_field_name) if (type == NULL || field_name == NULL) return NULL; + type = check_typedef (type); while (field_name[0] != '\0') { -- 2.30.2