X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fstd-operator.def;h=6123957e994c3d5bdde7f6303e1132cf874606df;hb=31925464a80970e37c06192a0c49f8948a2f5da0;hp=467c1411f5d231429767ccf373700cac8109028f;hpb=28e7fd62340426746f9c896cbc40c5d374ec47aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/std-operator.def b/gdb/std-operator.def index 467c1411f5..6123957e99 100644 --- a/gdb/std-operator.def +++ b/gdb/std-operator.def @@ -1,6 +1,6 @@ /* Standard language operator definitions for GDB, the GNU debugger. - Copyright (C) 1986-2013 Free Software Foundation, Inc. + Copyright (C) 1986-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -87,21 +87,14 @@ OP (BINOP_VAL) the second operand with itself that many times. */ OP (BINOP_CONCAT) -/* For (the deleted) Chill and Pascal. */ -OP (BINOP_IN) /* Returns 1 iff ARG1 IN ARG2. */ - -/* This is the "colon operator" used various places in (the - deleted) Chill. */ -OP (BINOP_RANGE) - /* This must be the highest BINOP_ value, for expprint.c. */ OP (BINOP_END) /* Operates on three values computed by following subexpressions. */ OP (TERNOP_COND) /* ?: */ -/* A sub-string/sub-array. (the deleted) Chill syntax: - OP1(OP2:OP3). Return elements OP2 through OP3 of OP1. */ +/* A sub-string/sub-array. Ada syntax: OP1(OP2..OP3). Return + elements OP2 through OP3 of OP1. */ OP (TERNOP_SLICE) /* Multidimensional subscript operator, such as Modula-2 x[a,b,...]. @@ -273,6 +266,9 @@ OP (OP_M2_STRING) /* Modula-2 string constants */ OP (STRUCTOP_STRUCT) OP (STRUCTOP_PTR) +/* Anonymous field access, e.g. "foo.3". Used in Rust. */ +OP (STRUCTOP_ANONYMOUS) + /* C++: OP_THIS is just a placeholder for the class instance variable. It just comes in a tight (OP_THIS, OP_THIS) pair. */ OP (OP_THIS) @@ -296,8 +292,9 @@ OP (OP_NAME) /* An Objective C Foundation Class NSString constant. */ OP (OP_OBJC_NSSTRING) -/* A F90 array range operator (for "exp:exp", "exp:", ":exp" and ":"). */ -OP (OP_F90_RANGE) +/* An array range operator (in Fortran 90, for "exp:exp", "exp:", + ":exp" and ":"). */ +OP (OP_RANGE) /* OP_DECFLOAT is followed by a type pointer in the next exp_element and a dec long constant value in the following exp_element. @@ -316,3 +313,10 @@ OP (OP_TYPEOF) evaluated solely for its type. This is similar to typeof, but has slight different semantics. */ OP (OP_DECLTYPE) + +/* The typeid operator. This has one expression argument. */ +OP (OP_TYPEID) + +/* This is used for the Rust [expr; N] form of array construction. It + takes two expression arguments. */ +OP (OP_RUST_ARRAY)