aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:18 -0700
commit808b22cfd7e1afdcba7dea700a76401e2f68f2c6 (patch)
tree0ea409776e9dbef65870525a3cb2ca6a0bbffd72 /gdb/eval.c
parent8cfd3e95b7624785a47e08b430d49b3d0329a0ee (diff)
downloadgdb-808b22cfd7e1afdcba7dea700a76401e2f68f2c6.zip
gdb-808b22cfd7e1afdcba7dea700a76401e2f68f2c6.tar.gz
gdb-808b22cfd7e1afdcba7dea700a76401e2f68f2c6.tar.bz2
Introduce structop_operation
This adds class structop_base_operation and structop_operation, which implement STRUCTOP_STRUCT. The base class exists to unify the completion code between STRUCTOP_STRUCT and STRUCTOP_PTR. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * expop.h (class structop_base_operation) (class structop_operation): New. * eval.c (eval_op_structop_struct): No longer static.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 3307c74..74aa970 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1342,7 +1342,7 @@ eval_op_ternop (struct type *expect_type, struct expression *exp,
/* A helper function for STRUCTOP_STRUCT. */
-static struct value *
+struct value *
eval_op_structop_struct (struct type *expect_type, struct expression *exp,
enum noside noside,
struct value *arg1, const char *string)