Introduce var_entry_value_operation

This adds class var_entry_value_operation, which implements
OP_VAR_ENTRY_VALUE.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

	* expop.h (class var_entry_value_operation): New.
	* eval.c (eval_op_var_entry_value): No longer static.
This commit is contained in:
Tom Tromey 2021-03-08 07:27:57 -07:00
parent 0c8effa32e
commit b5cc3923de
3 changed files with 28 additions and 1 deletions

View file

@ -1201,7 +1201,7 @@ eval_op_scope (struct type *expect_type, struct expression *exp,
/* Helper function that implements the body of OP_VAR_ENTRY_VALUE. */
static struct value *
struct value *
eval_op_var_entry_value (struct type *expect_type, struct expression *exp,
enum noside noside, symbol *sym)
{