diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:15 -0700 |
commit | d336c29e3f1b9adc314fcf44af38fb1d2b65b5e6 (patch) | |
tree | e76b05efc4d4dd1e609922133b17f499f9c8bed6 /gdb/ax-gdb.c | |
parent | d5ab122c48fec1eb617598c02c6efdf9ba1ee23f (diff) | |
download | binutils-d336c29e3f1b9adc314fcf44af38fb1d2b65b5e6.zip binutils-d336c29e3f1b9adc314fcf44af38fb1d2b65b5e6.tar.gz binutils-d336c29e3f1b9adc314fcf44af38fb1d2b65b5e6.tar.bz2 |
Introduce long_const_operation
This adds class long_const_operation, which holds a scalar constant.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* expop.h (class long_const_operation): New.
* ax-gdb.c (long_const_operation::do_generate_ax): New method.
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r-- | gdb/ax-gdb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 6d568a7..7640b1b 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -2314,6 +2314,16 @@ scope_operation::do_generate_ax (struct expression *exp, error (_("There is no field named %s"), name.c_str ()); } +void +long_const_operation::do_generate_ax (struct expression *exp, + struct agent_expr *ax, + struct axs_value *value, + struct type *cast_type) +{ + gen_int_literal (ax, value, std::get<1> (m_storage), + std::get<0> (m_storage)); +} + } /* This handles the middle-to-right-side of code generation for binary |