mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
Introduce unop_cast_operation
This adds class unop_cast_operation, which implements UNOP_CAST. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * expop.h (class unop_cast_operation): New. * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
This commit is contained in:
10
gdb/ax-gdb.c
10
gdb/ax-gdb.c
@@ -2514,6 +2514,16 @@ unop_sizeof_operation::do_generate_ax (struct expression *exp,
|
||||
value->type = builtin_type (ax->gdbarch)->builtin_int;
|
||||
}
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user