aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-21 21:00:27 +0000
committerTom Tromey <tromey@redhat.com>2010-05-21 21:00:27 +0000
commit74de6778b16fe5429d512d7250747f4d9e1ed374 (patch)
tree5f3c526668dca2b25e87cd5c0069781ea3528f0d /gdb/eval.c
parentf346a30d48d166e2471126b8121a819ef39e3312 (diff)
downloadgdb-74de6778b16fe5429d512d7250747f4d9e1ed374.zip
gdb-74de6778b16fe5429d512d7250747f4d9e1ed374.tar.gz
gdb-74de6778b16fe5429d512d7250747f4d9e1ed374.tar.bz2
gdb
* eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call evaluate_subexp, not evaluate_subexp_with_coercion. gdb/testsuite * gdb.dwarf2/pieces.exp (pieces_test_f2): New proc. Call it.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 1dbf6fa..8efb45a 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2059,8 +2059,8 @@ evaluate_subexp_standard (struct type *expect_type,
error (_("':' operator used in invalid context"));
case BINOP_SUBSCRIPT:
- arg1 = evaluate_subexp_with_coercion (exp, pos, noside);
- arg2 = evaluate_subexp_with_coercion (exp, pos, noside);
+ arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
+ arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
if (noside == EVAL_SKIP)
goto nosideret;
if (binop_user_defined_p (op, arg1, arg2))