binutils-gdb/gdb/testsuite/gdb.fortran
Felix Willgerodt 611aa09d99 gdb/fortran: Add 'LOC' intrinsic support.
LOC(X) returns the address of X as an integer:
https://gcc.gnu.org/onlinedocs/gfortran/LOC.html

Before:
(gdb) p LOC(r)
No symbol "LOC" in current context.

After:
(gdb) p LOC(r)
$1 = 0xffffdf48

gdb/ChangeLog:
2021-03-09  Felix Willgerodt  <felix.willgerodt@intel.com>

        * f-exp.h (eval_op_f_loc): Declare.
        (expr::fortran_loc_operation): New typedef.
        * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
        UNOP_INTRINSIC.
        (f77_keywords): Add LOC keyword.
        * f-lang.c (eval_op_f_loc): New function.
        * std-operator.def (UNOP_FORTRAN_LOC): New operator.

gdb/testsuite/ChangeLog:
2020-03-09  Felix Willgerodt  <felix.willgerodt@intel.com>

        * gdb.fortran/intrinsics.exp: Add LOC tests.
2021-03-09 11:34:55 +01:00
..
allocated.exp gdb/fortran: support ALLOCATED builtin 2021-02-12 09:22:17 +00:00
allocated.f90 gdb/fortran: support ALLOCATED builtin 2021-02-12 09:22:17 +00:00
array-bounds-high.exp
array-bounds-high.f90
array-bounds.exp
array-bounds.f90
array-element.exp
array-element.f
array-slices-bad.exp
array-slices-bad.f90
array-slices-sub-slices.exp
array-slices-sub-slices.f90
array-slices.exp
array-slices.f90
associated.exp gdb/testsuite: Add a missing -wrap in gdb_test_multiple 2021-02-25 16:38:03 +00:00
associated.f90 gdb/fortran: add support for ASSOCIATED builtin 2021-02-25 10:09:11 +00:00
block-data.exp
block-data.f
call-no-debug-func.f90 gdb/fortran: don't access non-existent type fields 2021-02-25 10:33:12 +00:00
call-no-debug-prog.f90 gdb/fortran: don't access non-existent type fields 2021-02-25 10:33:12 +00:00
call-no-debug.exp gdb/fortran: don't access non-existent type fields 2021-02-25 10:33:12 +00:00
charset.exp
charset.f90
class-allocatable-array.exp
class-allocatable-array.f90
common-block.exp
common-block.f90
completion.exp
completion.f90
complex.exp
complex.f90
debug-expr.exp Convert f-exp.y to use operations 2021-03-08 07:28:39 -07:00
debug-expr.f90
derived-type-function.exp
derived-type-function.f90
derived-type-striding.exp
derived-type-striding.f90
derived-type.exp
derived-type.f90
dot-ops.exp gdb/fortran: add support for legacy .xor. operator 2021-02-25 10:07:44 +00:00
exprs.exp
function-calls.exp
function-calls.f90
info-modules.exp
info-types-2.f90
info-types.exp
info-types.f90
intrinsics.exp gdb/fortran: Add 'LOC' intrinsic support. 2021-03-09 11:34:55 +01:00
intrinsics.f90
intvar-array.exp
intvar-array.f90
intvar-dynamic-types.exp
intvar-dynamic-types.f90
lbound-ubound.exp gdb/testsuite: remove old comment 2021-02-11 11:32:09 +00:00
lbound-ubound.F90 gdb/fortran: add parser support for lbound and ubound 2021-02-10 16:03:49 +00:00
library-module-lib.f90
library-module-main.f90
library-module.exp
logical.exp
logical.f90
max-depth.exp
max-depth.f90
mixed-lang-stack.c
mixed-lang-stack.cpp
mixed-lang-stack.exp
mixed-lang-stack.f90
module.exp
module.f90
multi-dim.exp
multi-dim.f90
nested-funcs-2.exp
nested-funcs-2.f90
nested-funcs.exp
nested-funcs.f90
pointer-to-pointer.exp gdb: call value_ind for pointers to dynamic types in UNOP_IND evaluation 2021-02-24 15:51:29 +00:00
pointer-to-pointer.f90
pointers.f90
print_type.exp
print-formatted.exp
print-formatted.f90
printing-types.exp
printing-types.f90
ptr-indentation.exp
ptr-indentation.f90
ptype-on-functions.exp
ptype-on-functions.f90
rank.exp gdb/fortran: add support for RANK keyword 2021-03-09 09:45:18 +00:00
rank.f90 gdb/fortran: add support for RANK keyword 2021-03-09 09:45:18 +00:00
shape.exp gdb/fotran: add support for the 'shape' keyword 2021-03-09 09:51:23 +00:00
shape.f90 gdb/fotran: add support for the 'shape' keyword 2021-03-09 09:51:23 +00:00
short-circuit-argument-list.exp
short-circuit-argument-list.f90
size.exp gdb/fortran: add support for 'SIZE' keyword 2021-03-09 09:51:23 +00:00
size.f90 gdb/fortran: add support for 'SIZE' keyword 2021-03-09 09:51:23 +00:00
subarray.exp
subarray.f
type-kinds.exp
type.f90
types.exp
vla-alloc-assoc.exp
vla-datatypes.exp
vla-datatypes.f90
vla-history.exp
vla-ptr-info.exp
vla-ptype-sub.exp
vla-ptype.exp
vla-sizeof.exp
vla-sub.f90
vla-type.exp
vla-type.f90
vla-value-sub-arbitrary.exp
vla-value-sub-finish.exp
vla-value-sub.exp
vla-value.exp
vla.f90
whatis_type.exp