aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.c
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:27 -0700
commit6ce1ad679a7aa1f82e483451669d5d77bfc1b8fb (patch)
treede2631c5f3d13cdb64c0fe6d7559754c52534d3c /gdb/rust-lang.c
parent11dd3dce4427792a89a851b8ed290b3c8124f282 (diff)
downloadgdb-6ce1ad679a7aa1f82e483451669d5d77bfc1b8fb.zip
gdb-6ce1ad679a7aa1f82e483451669d5d77bfc1b8fb.tar.gz
gdb-6ce1ad679a7aa1f82e483451669d5d77bfc1b8fb.tar.bz2
Introduce rust_subscript_operation
This adds class rust_subscript_operation, which implements BINOP_SUBSCRIPT for Rust. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * rust-lang.c (rust_subscript): No longer static. * rust-exp.h (class rust_subscript_operation): New.
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r--gdb/rust-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index f1f4cd3..81b6702 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -1168,7 +1168,7 @@ rust_compute_range (struct type *type, struct value *range,
/* A helper for rust_evaluate_subexp that handles BINOP_SUBSCRIPT. */
-static struct value *
+struct value *
rust_subscript (struct type *expect_type, struct expression *exp,
enum noside noside, bool for_addr,
struct value *lhs, struct value *rhs)