binutils-gdb/gdb/testsuite/gdb.fortran
Richard Bunt 712872748d gdb: Remove redundant frame switching
547ce8f00b fixed an issue where dynamic types were not being resolved
correctly prior to printing a value. The same issue was discovered when
printing the value using mi-mode, which was not covered by the fix.
Porting the fix to the mi-mode code path resolved the issue.

However, it was discovered that a later patch series, ending
2fc3b8a4cb, independently fixed the issue in both the cli- and mi-mode
code paths, making the original fix unneeded.

This commit removes this extra frame switch and adds test coverage for
the mi-mode scenario to protect against any future divergence in this
area.

GDB built with GCC 11.

No test suite regressions detected. Compilers: GCC 12.1.0, ACfL 22.1,
Intel 22.1; Platforms: x86_64, aarch64.

Approved-By: Tom Tromey <tom@tromey.com>
2023-05-19 11:29:43 +01:00
..
allocated.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
allocated.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-bounds-high.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-bounds-high.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-bounds.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-bounds.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-element.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-element.f Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-indices.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-no-bounds.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-no-bounds.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-repeat.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-repeat.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-slices-bad.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-slices-bad.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-slices-repeat.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-slices-sub-slices.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
array-slices-sub-slices.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
array-slices.exp Use require with target_info 2023-03-10 08:21:46 -07:00
array-slices.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
associated.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
associated.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
assumedrank.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
assumedrank.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
backtrace.exp GDB: Favor full symbol main name for backtrace stop 2023-03-31 15:31:40 +01:00
backtrace.f90 GDB: Favor full symbol main name for backtrace stop 2023-03-31 15:31:40 +01:00
block-data.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
block-data.f Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
call-no-debug-func.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
call-no-debug-prog.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
call-no-debug.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
charset.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
charset.f90
class-allocatable-array.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
class-allocatable-array.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
common-block.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
common-block.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
completion.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
completion.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
complex.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
complex.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
debug-expr.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
debug-expr.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
derived-type-function.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
derived-type-function.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
derived-type-striding.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
derived-type-striding.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
derived-type.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
derived-type.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
dot-ops.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
dynamic-ptype-whatis.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
dynamic-ptype-whatis.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
empty-string.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
empty-string.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
exprs.exp Use clean_restart in gdb.fortran 2023-01-26 18:28:32 -07:00
function-calls.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
function-calls.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
info-main.exp GDB: Add `info main' command 2023-03-31 15:31:40 +01:00
info-main.f90 GDB: Add `info main' command 2023-03-31 15:31:40 +01:00
info-modules.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
info-types-2.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
info-types.exp Remove some dead code in gdb.fortran/info-types.exp 2023-01-26 18:28:31 -07:00
info-types.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
intrinsics.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
intrinsics.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
intvar-array.exp Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
intvar-array.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
intvar-dynamic-types.exp Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
intvar-dynamic-types.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
lbound-ubound.exp gdb.fortran/lbound-ubound.exp: read expected lbound and ubound from function parameters (PR 30414) 2023-05-18 13:22:30 -04:00
lbound-ubound.F90 gdb.fortran/lbound-ubound.exp: read expected lbound and ubound from function parameters (PR 30414) 2023-05-18 13:22:30 -04:00
library-module-lib.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
library-module-main.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
library-module.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
limited-length.exp GDB: Introduce limited array lengths while printing values 2023-02-10 23:49:19 +00:00
limited-length.f90 GDB: Introduce limited array lengths while printing values 2023-02-10 23:49:19 +00:00
logical.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
logical.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
max-depth.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
max-depth.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mixed-lang-stack.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mixed-lang-stack.cpp Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mixed-lang-stack.exp gdb: Remove redundant frame switching 2023-05-19 11:29:43 +01:00
mixed-lang-stack.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
module.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
module.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
multi-dim.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
multi-dim.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
namelist.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
namelist.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
nested-funcs-2.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
nested-funcs-2.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
nested-funcs.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
nested-funcs.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
oop_extend_type.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
oop_extend_type.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
pointer-to-pointer.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
pointer-to-pointer.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
pointers.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
print-formatted.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
print-formatted.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
print_type.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
printing-types.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
printing-types.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
ptr-indentation.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
ptr-indentation.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
ptype-on-functions.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
ptype-on-functions.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
rank.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
rank.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
shape.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
shape.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
short-circuit-argument-list.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
short-circuit-argument-list.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
size.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
size.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
string-types.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
string-types.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
subarray.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
subarray.f Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
type-kinds.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
type.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
types.exp Use clean_restart in gdb.fortran 2023-01-26 18:28:32 -07:00
vla-alloc-assoc.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-datatypes.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-datatypes.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
vla-history.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-ptr-info.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-ptype-sub.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-ptype.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-sizeof.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-sub.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
vla-type.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-type.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
vla-value-sub-arbitrary.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-value-sub-finish.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-value-sub.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla-value.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00
vla.f90 Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
whatis_type.exp Rename to allow_fortran_tests 2023-01-13 13:18:57 -07:00