From 7398958c7d7356235a818cca7da57d9377ee0556 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sun, 12 Feb 1995 19:21:04 +0000 Subject: * language.h (struct language_defn): New field evaluate_exp. * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn), f-lang.c (f_language_defn), language.c (unknown_language_defn, auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn): Set evaluate_exp to evaluate_subexp_standard. * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific support for MULTI_SUBSCRIPT. (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill. * eval.c (enum noside): Move from here .... * expression.h (enum noside): ... to here. (evaluate_subexp_standard): New prototype. * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard. Removed lo-longer-needed test for chill_varying_type. (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp. --- gdb/language.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/language.h') diff --git a/gdb/language.h b/gdb/language.h index 0e263ba..02fccec 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -25,6 +25,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef __STDC__ /* Forward decls for prototypes */ struct value; struct objfile; +struct expression; /* enum exp_opcode; ANSI's `wisdom' didn't include forward enum decls. */ #endif @@ -132,6 +133,10 @@ struct language_defn void (*la_error) PARAMS ((char *)); + /* Evaluate an expression. */ + struct value * (*evaluate_exp) PARAMS ((struct type*, struct expression *, + int *, enum noside)); + void (*la_printchar) PARAMS ((int, GDB_FILE *)); void (*la_printstr) PARAMS ((GDB_FILE *, char *, unsigned int, int)); -- cgit v1.1