From: Tom Tromey Date: Tue, 11 May 2010 16:54:28 +0000 (+0000) Subject: * eval.c (evaluate_subexp_standard): Revert inadvertent change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d02691ef9ab6da5a9d5a21f80f31cf679f13e507;p=binutils-gdb.git * eval.c (evaluate_subexp_standard): Revert inadvertent change. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a3b67926cf..da1da920e21 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-05-11 Tom Tromey + + * eval.c (evaluate_subexp_standard): Revert inadvertent change. + 2010-05-10 Michael Snyder * utils.c: White space cleanup. diff --git a/gdb/eval.c b/gdb/eval.c index 2c8b01f4d81..273cd0e145d 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -2033,8 +2033,8 @@ evaluate_subexp_standard (struct type *expect_type, error (_("':' operator used in invalid context")); case BINOP_SUBSCRIPT: - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); - arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp_with_coercion (exp, pos, noside); + arg2 = evaluate_subexp_with_coercion (exp, pos, noside); if (noside == EVAL_SKIP) goto nosideret; if (binop_user_defined_p (op, arg1, arg2))