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:25 -0700 |
commit | 085734dd954dd2b3da9445dc517bfdb10f9ca117 (patch) | |
tree | 398e7c71d53b1ee5000c6f20a59ee16442d15c8d /gdb/c-exp.h | |
parent | e82a5afcedd98a2ca9c1915bef2938c77e967959 (diff) | |
download | gdb-085734dd954dd2b3da9445dc517bfdb10f9ca117.zip gdb-085734dd954dd2b3da9445dc517bfdb10f9ca117.tar.gz gdb-085734dd954dd2b3da9445dc517bfdb10f9ca117.tar.bz2 |
Introduce objc_msgcall_operation
This adds class objc_msgcall_operation, which implements
OP_OBJC_MSGCALL.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* eval.c (objc_msgcall_operation::evaluate): New method.
* c-exp.h (class objc_msgcall_operation): New.
Diffstat (limited to 'gdb/c-exp.h')
-rw-r--r-- | gdb/c-exp.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/c-exp.h b/gdb/c-exp.h index dcb4557..2d224c8 100644 --- a/gdb/c-exp.h +++ b/gdb/c-exp.h @@ -88,6 +88,23 @@ public: { return OP_OBJC_SELECTOR; } }; +/* An Objective C message call. */ +class objc_msgcall_operation + : public tuple_holding_operation<CORE_ADDR, operation_up, + std::vector<operation_up>> +{ +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 OP_OBJC_MSGCALL; } +}; + }/* namespace expr */ #endif /* C_EXP_H */ |