aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r--gdb/rust-lang.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index 63ea21b..f1f4cd3 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -1325,9 +1325,10 @@ rust_subscript (struct type *expect_type, struct expression *exp,
/* A helper function for UNOP_IND. */
-static struct value *
+struct value *
eval_op_rust_ind (struct type *expect_type, struct expression *exp,
enum noside noside,
+ enum exp_opcode opcode,
struct value *value)
{
gdb_assert (noside == EVAL_NORMAL);
@@ -1521,7 +1522,7 @@ rust_evaluate_subexp (struct type *expect_type, struct expression *exp,
++*pos;
struct value *value = evaluate_subexp (expect_type, exp, pos,
noside);
- result = eval_op_rust_ind (expect_type, exp, noside, value);
+ result = eval_op_rust_ind (expect_type, exp, noside, op, value);
}
}
break;