aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-exp.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:29 -0700
commit638fd74a616e095159e88ed4e596a71153bef88e (patch)
tree5f078989f6be6d92436bf48743a39472e7dada07 /gdb/rust-exp.h
parenta00b7254fb614af557de7ae7cc0eb39a0ce0e408 (diff)
downloadfsf-binutils-gdb-638fd74a616e095159e88ed4e596a71153bef88e.zip
fsf-binutils-gdb-638fd74a616e095159e88ed4e596a71153bef88e.tar.gz
fsf-binutils-gdb-638fd74a616e095159e88ed4e596a71153bef88e.tar.bz2
Implement Rust funcall operation
This adds the special code needed to handle the Rust function call operation. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * rust-lang.c (rust_structop::evaluate_funcall): New method. * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare method.
Diffstat (limited to 'gdb/rust-exp.h')
-rw-r--r--gdb/rust-exp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/rust-exp.h b/gdb/rust-exp.h
index 6e529f8..1019922 100644
--- a/gdb/rust-exp.h
+++ b/gdb/rust-exp.h
@@ -203,6 +203,11 @@ public:
std::get<1> (m_storage).c_str ());
}
+ value *evaluate_funcall (struct type *expect_type,
+ struct expression *exp,
+ enum noside noside,
+ const std::vector<operation_up> &args) override;
+
enum exp_opcode opcode () const override
{ return STRUCTOP_STRUCT; }
};