Index: ada-lang.c =================================================================== RCS file: /cvs/src/src/gdb/ada-lang.c,v retrieving revision 1.85 diff -u -p -r1.85 ada-lang.c --- ada-lang.c 1 Dec 2006 00:32:29 -0000 1.85 +++ ada-lang.c 2 Jan 2007 10:52:36 -0000 @@ -8576,7 +8576,7 @@ ada_evaluate_subexp (struct type *expect if (noside == EVAL_SKIP) goto nosideret; else if (noside == EVAL_AVOID_SIDE_EFFECTS) - return allocate_value (builtin_type_void); + return allocate_value (exp->elts[pc + 1].type); else error (_("Attempt to use a type name as an expression"));