]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb/fortran: support ALLOCATED builtin
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Feb 2021 13:34:06 +0000 (13:34 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Feb 2021 09:22:17 +0000 (09:22 +0000)
commit96df3e28b835ccb5804bcca96f417761e5e8be67
tree6b09c8d9cb20a88b9cf4081f1814cfafaa86de62
parent17e04eff810ecf1f8392a995876a98361c565ec7
gdb/fortran: support ALLOCATED builtin

Add support for the ALLOCATED keyword to the Fortran expression
parser.

gdb/ChangeLog:

* f-exp.y (f77_keywords): Add allocated.
* f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
(operator_length_f): Likewise.
(print_subexp_f): Likewise.
(dump_subexp_body_f): Likewise.
(operator_check_f): Likewise.
* std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.

gdb/testsuite/ChangeLog:

* gdb.fortran/allocated.exp: New file.
* gdb.fortran/allocated.f90: New file.
gdb/ChangeLog
gdb/f-exp.y
gdb/f-lang.c
gdb/std-operator.def
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/allocated.exp [new file with mode: 0644]
gdb/testsuite/gdb.fortran/allocated.f90 [new file with mode: 0644]