diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:12:15 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:12:15 +0000 |
commit | c806c55a0672b52f228ce56f5bf57f065c447506 (patch) | |
tree | 1ba1bd00de1325503ac16e28493fec8e1d0ef10a /gdb/expression.h | |
parent | fbb06eb1ba120adde645d64133f5a9bbf2d62ec7 (diff) | |
download | gdb-c806c55a0672b52f228ce56f5bf57f065c447506.zip gdb-c806c55a0672b52f228ce56f5bf57f065c447506.tar.gz gdb-c806c55a0672b52f228ce56f5bf57f065c447506.tar.bz2 |
* expression.h (enum exp_opcode): Document OP_COMPLEX to take
a type parameter as expression element.
* eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
type as expression element.
* f-exp.y: Pass in type when buildin OP_COMPLEX expression.
* parse.c (operator_length_standard): Update length of OP_COMPLEX.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r-- | gdb/expression.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/expression.h b/gdb/expression.h index 4590feb..fe5f8fc 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -193,8 +193,9 @@ enum exp_opcode indicates that we have found something of the form <name> ( <stuff> ) */ OP_F77_UNDETERMINED_ARGLIST, - /* The following OP is a special one, it introduces a F77 complex - literal. It is followed by exactly two args that are doubles. */ + /* OP_COMPLEX takes a type in the following element, followed by another + OP_COMPLEX, making three exp_elements. It is followed by two double + args, and converts them into a complex number of the given type. */ OP_COMPLEX, /* OP_STRING represents a string constant. |