Introduce string_operation

This adds string_operation, which implements OP_STRING for most
languages (C has its own variant).

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

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

View File

@@ -1284,7 +1284,7 @@ eval_op_register (struct type *expect_type, struct expression *exp,
/* Helper function that implements the body of OP_STRING. */
static struct value *
struct value *
eval_op_string (struct type *expect_type, struct expression *exp,
enum noside noside, int len, const char *string)
{