summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorqiyao <qiyao>2012-08-13 00:54:03 +0000
committerqiyao <qiyao>2012-08-13 00:54:03 +0000
commit492a50b4c9f9d51d29e0035417e29e7d4f5cc1cc (patch)
tree0b70e0999bdcc67ca13695dd6c43b5b99a61a5b7 /gdb/valops.c
parent4e691aa3ce0784b9c7f566bbc4c7f960e836bc76 (diff)
downloadgdb-492a50b4c9f9d51d29e0035417e29e7d4f5cc1cc.tar.gz
gdb/
* std-operator.def: Remove OP_BITSTRING. * breakpoint.c (watchpoint_exp_is_const): Update. * eval.c (evaluate_subexp_standard): Remove handling to OP_BITSTRING. * expprint.c (print_subexp_standard): Likewise. (dump_subexp_body_standard): Likewise. * parse.c (operator_length_standard): Likewise. * valops.c (value_bitstring): Remove. * value.h: Remove the declaration of 'value_bitstring'.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 934f38144a6..8167cd49553 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1875,19 +1875,6 @@ value_string (char *ptr, int len, struct type *char_type)
return val;
}
-struct value *
-value_bitstring (char *ptr, int len, struct type *index_type)
-{
- struct value *val;
- struct type *domain_type
- = create_range_type (NULL, index_type, 0, len - 1);
- struct type *type = create_set_type (NULL, domain_type);
-
- TYPE_CODE (type) = TYPE_CODE_BITSTRING;
- val = allocate_value (type);
- memcpy (value_contents_raw (val), ptr, TYPE_LENGTH (type));
- return val;
-}
/* See if we can pass arguments in T2 to a function which takes
arguments of types T1. T1 is a list of NARGS arguments, and T2 is