Add two simple Modula-2 operations

This adds a couple of simple Modula-2 operations.

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

	* m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
	static.
	* m2-exp.h: New file.
This commit is contained in:
Tom Tromey 2021-03-08 07:27:57 -07:00
parent 5947d337d6
commit 2bc9b40ce1
3 changed files with 93 additions and 2 deletions

View file

@ -28,10 +28,11 @@
#include "c-lang.h"
#include "valprint.h"
#include "gdbarch.h"
#include "m2-exp.h"
/* A helper function for UNOP_HIGH. */
static struct value *
struct value *
eval_op_m2_high (struct type *expect_type, struct expression *exp,
enum noside noside,
struct value *arg1)
@ -62,7 +63,7 @@ eval_op_m2_high (struct type *expect_type, struct expression *exp,
/* A helper function for BINOP_SUBSCRIPT. */
static struct value *
struct value *
eval_op_m2_subscript (struct type *expect_type, struct expression *exp,
enum noside noside,
struct value *arg1, struct value *arg2)