aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-08-13 01:02:07 +0000
committerYao Qi <yao@codesourcery.com>2012-08-13 01:02:07 +0000
commit7507c54a534f620a576c5101ff5a41045409db56 (patch)
tree70c34595f3db3b65b6ec0af01bf08d54ea69a96c /gdb/eval.c
parent5cad973621efdc630546390dc0b34eb4d31906ae (diff)
downloadgdb-7507c54a534f620a576c5101ff5a41045409db56.zip
gdb-7507c54a534f620a576c5101ff5a41045409db56.tar.gz
gdb-7507c54a534f620a576c5101ff5a41045409db56.tar.bz2
gdb/
* std-operator.def: Remove TERNOP_SLICE_COUNT. * breakpoint.c (watchpoint_exp_is_const): Remove handling to TERNOP_SLICE_COUNT. * eval.c (evaluate_subexp_standard): Likewise. * expprint.c (print_subexp_standard): Likewise. (dump_subexp_body_standard): Likewise. * parse.c (operator_length_standard): Likewise.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 9bf5401..c0d9354 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1140,17 +1140,6 @@ evaluate_subexp_standard (struct type *expect_type,
return value_slice (array, lowbound, upper - lowbound + 1);
}
- case TERNOP_SLICE_COUNT:
- {
- struct value *array = evaluate_subexp (NULL_TYPE, exp, pos, noside);
- int lowbound
- = value_as_long (evaluate_subexp (NULL_TYPE, exp, pos, noside));
- int length
- = value_as_long (evaluate_subexp (NULL_TYPE, exp, pos, noside));
-
- return value_slice (array, lowbound, length);
- }
-
case TERNOP_COND:
/* Skip third and second args to evaluate the first one. */
arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);