OSDN Git Service

* ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
authorJoel Brobecker <brobecker@gnat.com>
Tue, 24 Mar 2009 02:07:06 +0000 (02:07 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 24 Mar 2009 02:07:06 +0000 (02:07 +0000)
        trying to resolve the type qualification.

gdb/ChangeLog
gdb/ada-lang.c

index 7754d64..aa9fcd3 100644 (file)
@@ -1,5 +1,10 @@
 2009-03-23  Joel Brobecker  <brobecker@adacore.com>
 
+       * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
+       trying to resolve the type qualification.
+
+2009-03-23  Joel Brobecker  <brobecker@adacore.com>
+
        * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
        we try to apply the attribute on the real type, rather than
        its associated typedef.
index f257fb3..6fa4cfa 100644 (file)
@@ -2654,7 +2654,7 @@ resolve_subexp (struct expression **expp, int *pos, int deprocedure_p,
 
     case UNOP_QUAL:
       *pos += 3;
-      resolve_subexp (expp, pos, 1, exp->elts[pc + 1].type);
+      resolve_subexp (expp, pos, 1, check_typedef (exp->elts[pc + 1].type));
       break;
 
     case OP_ATR_MODULUS: