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:14 -0700 |
commit | 75f9892d435f58fd12e26638a56564e374bfa951 (patch) | |
tree | 6ec69dd5e1d91fd0a367c4c69d1828a6311a123c /gdb/expop.h | |
parent | de401988aeac56a8478f61cde1b35e961742317b (diff) | |
download | gdb-75f9892d435f58fd12e26638a56564e374bfa951.zip gdb-75f9892d435f58fd12e26638a56564e374bfa951.tar.gz gdb-75f9892d435f58fd12e26638a56564e374bfa951.tar.bz2 |
Add two agent expression helper functions
This adds a couple of agent expression helper functions that will be
useful when implementing various operations.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* expop.h (gen_expr_binop, gen_expr_structop): Declare.
* ax-gdb.c (gen_expr_binop): New function.
(gen_expr_structop): Likewise.
Diffstat (limited to 'gdb/expop.h')
-rw-r--r-- | gdb/expop.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/expop.h b/gdb/expop.h index 97848fd..1bf0613 100644 --- a/gdb/expop.h +++ b/gdb/expop.h @@ -31,6 +31,16 @@ struct agent_expr; struct axs_value; +extern void gen_expr_binop (struct expression *exp, + enum exp_opcode op, + expr::operation *lhs, expr::operation *rhs, + struct agent_expr *ax, struct axs_value *value); +extern void gen_expr_structop (struct expression *exp, + enum exp_opcode op, + expr::operation *lhs, + const char *name, + struct agent_expr *ax, struct axs_value *value); + namespace expr { |