aboutsummaryrefslogtreecommitdiff
path: root/gdb/expop.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/expop.h')
-rw-r--r--gdb/expop.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/expop.h b/gdb/expop.h
index 0785df9..9b5c4ea 100644
--- a/gdb/expop.h
+++ b/gdb/expop.h
@@ -2049,6 +2049,28 @@ public:
{ return OP_ADL_FUNC; }
};
+/* The OP_ARRAY operation. */
+class array_operation
+ : public tuple_holding_operation<int, int, std::vector<operation_up>>
+{
+public:
+
+ using tuple_holding_operation::tuple_holding_operation;
+
+ value *evaluate (struct type *expect_type,
+ struct expression *exp,
+ enum noside noside) override;
+
+ enum exp_opcode opcode () const override
+ { return OP_ARRAY; }
+
+private:
+
+ struct value *evaluate_struct_tuple (struct value *struct_val,
+ struct expression *exp,
+ enum noside noside, int nargs);
+};
+
} /* namespace expr */
#endif /* EXPOP_H */