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
commite4407a202d31a6873ea240b13125bf1ae8d20401 (patch)
tree2e9e5c7209830771fda18563ea9a082084662e20 /gdb/rust-lang.c
parent9db6b6ddbd3a384d3a80bfee3e3a5c5a40fd43d0 (diff)
downloadbinutils-e4407a202d31a6873ea240b13125bf1ae8d20401.zip
binutils-e4407a202d31a6873ea240b13125bf1ae8d20401.tar.gz
binutils-e4407a202d31a6873ea240b13125bf1ae8d20401.tar.bz2
Implement Rust field operations
This implements the field operations STRUCTOP_STRUCT and STRUCTOP_ANONYMOUS, for Rust. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop): No longer static. * rust-exp.h (class rust_struct_anon): New. (class rust_structop): New.
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r--gdb/rust-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index 46eb03e..1373de9 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -1388,7 +1388,7 @@ eval_op_rust_array (struct type *expect_type, struct expression *exp,
/* A helper function for STRUCTOP_ANONYMOUS. */
-static struct value *
+struct value *
eval_op_rust_struct_anon (struct type *expect_type, struct expression *exp,
enum noside noside,
int field_number, struct value *lhs)
@@ -1455,7 +1455,7 @@ tuple structs, and tuple-like enum variants"));
/* A helper function for STRUCTOP_STRUCT. */
-static struct value *
+struct value *
eval_op_rust_structop (struct type *expect_type, struct expression *exp,
enum noside noside,
struct value *lhs, const char *field_name)