From 165a813a3abaa1f5993d754765bff2cfa9755995 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2021 07:27:57 -0700 Subject: Introduce unop_cast_operation This adds class unop_cast_operation, which implements UNOP_CAST. gdb/ChangeLog 2021-03-08 Tom Tromey * expop.h (class unop_cast_operation): New. * ax-gdb.c (unop_cast_operation::do_generate_ax): New method. --- gdb/ax-gdb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/ax-gdb.c') diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index f81e5b9..84887da 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -2515,6 +2515,16 @@ unop_sizeof_operation::do_generate_ax (struct expression *exp, } void +unop_cast_operation::do_generate_ax (struct expression *exp, + struct agent_expr *ax, + struct axs_value *value, + struct type *cast_type) +{ + std::get<0> (m_storage)->generate_ax (exp, ax, value, + std::get<1> (m_storage)); +} + +void unop_memval_operation::do_generate_ax (struct expression *exp, struct agent_expr *ax, struct axs_value *value, -- cgit v1.1