summaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-24 02:08:23 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-24 02:08:23 +0000
commit390ac7259731cdf469ea739345e64d3a7d248818 (patch)
tree72f232469d050fe409a4b2dd0875da284008adec /gdb/ada-exp.y
parent9533c58c4b0c692975a4b97267222ad002364a29 (diff)
downloadgdb-390ac7259731cdf469ea739345e64d3a7d248818.tar.gz
* ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
before looking up the fields inside our struct type.
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r--gdb/ada-exp.y1
1 files changed, 1 insertions, 0 deletions
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')
{