diff options
author | Wu Zhou <woodzltc@cn.ibm.com> | 2005-07-06 06:52:25 +0000 |
---|---|---|
committer | Wu Zhou <woodzltc@cn.ibm.com> | 2005-07-06 06:52:25 +0000 |
commit | bd49c137fee8212c7e64ce62cc07d398b1278b14 (patch) | |
tree | 1e41f9c36b171df9b614b3e443aaee1fbbe020ab /gdb/eval.c | |
parent | a0c5fbcf0e1c6fdb3672d3bfc071b1a57a7b27bf (diff) | |
download | gdb-bd49c137fee8212c7e64ce62cc07d398b1278b14.zip gdb-bd49c137fee8212c7e64ce62cc07d398b1278b14.tar.gz gdb-bd49c137fee8212c7e64ce62cc07d398b1278b14.tar.bz2 |
* f-exp.y (yyparse): Add code to support exponentiation expression.
(yylex): Add code to scan exponentiation operator.
* eval.c (evaluate_subexp_standard): Add support for BINOP_EXP.
* valarith.c (value_binop): Reset errno to 0 before calling pow
to do exponentiation operation.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1510,6 +1510,7 @@ evaluate_subexp_standard (struct type *expect_type, else return value_sub (arg1, arg2); + case BINOP_EXP: case BINOP_MUL: case BINOP_DIV: case BINOP_REM: |