Introduce func_static_var_operation

This adds class func_static_var_operation, which implements
OP_FUNC_STATIC_VAR.

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

	* expop.h (class func_static_var_operation): New.
	* eval.c (eval_op_func_static_var): No longer static.
This commit is contained in:
Tom Tromey 2021-03-08 07:27:57 -07:00
parent b5cc3923de
commit 176793957a
3 changed files with 30 additions and 1 deletions

View file

@ -1237,7 +1237,7 @@ eval_op_var_msym_value (struct type *expect_type, struct expression *exp,
/* Helper function that implements the body of OP_FUNC_STATIC_VAR. */
static struct value *
struct value *
eval_op_func_static_var (struct type *expect_type, struct expression *exp,
enum noside noside,
value *func, const char *var)