aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-11 16:54:28 +0000
committerTom Tromey <tromey@redhat.com>2010-05-11 16:54:28 +0000
commitd02691ef9ab6da5a9d5a21f80f31cf679f13e507 (patch)
tree4e329584512c8fb79a0057436218239df78acb8c /gdb
parent941100245a42cb730b23ff0f6889265e2e5f9e2f (diff)
downloadgdb-d02691ef9ab6da5a9d5a21f80f31cf679f13e507.zip
gdb-d02691ef9ab6da5a9d5a21f80f31cf679f13e507.tar.gz
gdb-d02691ef9ab6da5a9d5a21f80f31cf679f13e507.tar.bz2
* eval.c (evaluate_subexp_standard): Revert inadvertent change.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/eval.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0a3b679..da1da92 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-11 Tom Tromey <tromey@redhat.com>
+
+ * eval.c (evaluate_subexp_standard): Revert inadvertent change.
+
2010-05-10 Michael Snyder <msnyder@vmware.com>
* utils.c: White space cleanup.
diff --git a/gdb/eval.c b/gdb/eval.c
index 2c8b01f..273cd0e 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))