aboutsummaryrefslogtreecommitdiff
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:26 -0700
commitcc6bd32eeac6b31b036a172b6841d699e05b285f (patch)
tree150f9d662a6c0c7e57f32270a741a8800491ec11 /gdb/ada-exp.h
parent42fecb6183f4cce4e85473b8c43d90ec0ea562e7 (diff)
downloadgdb-cc6bd32eeac6b31b036a172b6841d699e05b285f.zip
gdb-cc6bd32eeac6b31b036a172b6841d699e05b285f.tar.gz
gdb-cc6bd32eeac6b31b036a172b6841d699e05b285f.tar.bz2
Introduce ada_qual_operation
This adds class ada_qual_operation, which implements UNOP_QUAL. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * ada-lang.c (ada_qual_operation::evaluate): New method. * ada-exp.h (class ada_qual_operation): New.
Diffstat (limited to 'gdb/ada-exp.h')
-rw-r--r--gdb/ada-exp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ada-exp.h b/gdb/ada-exp.h
index 88ed0c5..9a8c8df 100644
--- a/gdb/ada-exp.h
+++ b/gdb/ada-exp.h
@@ -55,6 +55,22 @@ public:
enum noside noside) override;
};
+/* The Ada TYPE'(EXP) construct. */
+class ada_qual_operation
+ : public tuple_holding_operation<operation_up, struct type *>
+{
+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 UNOP_QUAL; }
+};
+
} /* namespace expr */
#endif /* ADA_EXP_H */