commit f98f8475053188720788ff03bc71f82f6f0dcbe9 Author: Joel Brobecker Date: Mon Mar 23 17:09:45 2009 -0700 Fix issue with 'range attribute... * 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. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 38902af..f257fb3 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -8786,7 +8786,7 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp, case UNOP_IN_RANGE: (*pos) += 2; arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); - type = exp->elts[pc + 1].type; + type = check_typedef (exp->elts[pc + 1].type); if (noside == EVAL_SKIP) goto nosideret;