summaryrefslogtreecommitdiff
path: root/gdb/ada-exp.h
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:34 -0700
commit3f4a0053d9699d19a0251cd8c87871c65994e8e1 (patch)
tree34aa44b40bab445276fcc9f688bd64edc579e166 /gdb/ada-exp.h
parent99a3b1e77b6bd5fdca5874d3276ab9499308bc08 (diff)
downloadbinutils-gdb-3f4a0053d9699d19a0251cd8c87871c65994e8e1.tar.gz
Introduce ada_var_msym_value_operation
This adds class ada_var_msym_value_operation, which implements OP_VAR_MSYM_VALUE for Ada. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast): New method. * ada-exp.h (class ada_var_msym_value_operation): New.
Diffstat (limited to 'gdb/ada-exp.h')
-rw-r--r--gdb/ada-exp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ada-exp.h b/gdb/ada-exp.h
index 0f2f62f5978..0fe6ecf7e93 100644
--- a/gdb/ada-exp.h
+++ b/gdb/ada-exp.h
@@ -304,6 +304,23 @@ protected:
using operation::do_generate_ax;
};
+/* Variant of var_msym_value_operation for Ada. */
+class ada_var_msym_value_operation
+ : public var_msym_value_operation
+{
+public:
+
+ using var_msym_value_operation::var_msym_value_operation;
+
+ value *evaluate_for_cast (struct type *expect_type,
+ struct expression *exp,
+ enum noside noside) override;
+
+protected:
+
+ using operation::do_generate_ax;
+};
+
} /* namespace expr */
#endif /* ADA_EXP_H */