aboutsummaryrefslogtreecommitdiff
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
commit6cdd57f45ddc8636b0cb899448bf62aaf467e97c (patch)
tree5d8ffe06078395818657c6d32a1b44964878f7c1 /gdb/ada-exp.y
parent17466c1a8a293601e687da937bd31a78115eaf63 (diff)
downloadfsf-binutils-gdb-6cdd57f45ddc8636b0cb899448bf62aaf467e97c.zip
fsf-binutils-gdb-6cdd57f45ddc8636b0cb899448bf62aaf467e97c.tar.gz
fsf-binutils-gdb-6cdd57f45ddc8636b0cb899448bf62aaf467e97c.tar.bz2
* 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 0da0caa..ee0fcf3 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')
{