aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1995-01-20 23:45:21 +0000
committerPer Bothner <per@bothner.com>1995-01-20 23:45:21 +0000
commitdcda44a07a5fae20fc6ab26e07229984f87b7172 (patch)
tree1fc99b3348a3486686f52eafb5d4fe11a18ef5d4 /gdb/parse.c
parentf34c87666e4020cfd61a4d8d1084f03c9f3038d2 (diff)
downloadgdb-dcda44a07a5fae20fc6ab26e07229984f87b7172.zip
gdb-dcda44a07a5fae20fc6ab26e07229984f87b7172.tar.gz
gdb-dcda44a07a5fae20fc6ab26e07229984f87b7172.tar.bz2
* expression.h (OP_LABELED): New operator, for Chill
labeled structre tuples. * ch-exp.y (tuple_element, named_record_element, tuple_elements): New non-terminals, to handle labeled structure tuples. (tuple): Re-define using tuple_elements. * eval.c (evaluate_labeled_field_init): New function, to handle initialization of structure fields, possibly using OP_LABELED. (evaluate_subexp): Use it. * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax for Chill. Handled OP_LABELED. * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED. * eval.c (evaluate_subexp): Handle Chill Powerset tuples. * valarith.c (value_bit_index): Just treat bitstring as represented by an array of bytes. Alignment is handled by compiler.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r--gdb/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 4b7d541..a6d9575 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -510,6 +510,7 @@ length_of_subexp (expr, endpos)
args = 1;
break;
+ case OP_LABELED:
case STRUCTOP_STRUCT:
case STRUCTOP_PTR:
args = 1;
@@ -653,6 +654,7 @@ prefixify_subexp (inexpr, outexpr, inend, outbeg)
case STRUCTOP_STRUCT:
case STRUCTOP_PTR:
+ case OP_LABELED:
args = 1;
/* fall through */
case OP_M2_STRING: