From 17466c1a8a293601e687da937bd31a78115eaf63 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 24 Mar 2009 02:07:07 +0000 Subject: [PATCH] * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before trying to resolve the type qualification. --- gdb/ChangeLog | 5 +++++ gdb/ada-lang.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7754d6405dc..aa9fcd3db24 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-03-23 Joel Brobecker + + * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before + trying to resolve the type qualification. + 2009-03-23 Joel Brobecker * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index f257fb391fa..6fa4cfa4ec8 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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: -- 2.30.2