binutils-gdb/gdb/testsuite/gdb.fortran
Keith Seitz 2880242dd0 Allow really large fortran array bounds: fortran type/value printers
This is the fortran part of the patch, including tests, which
are essentially unchanged from Siddhesh's original 2012 submission:

  https://sourceware.org/ml/gdb-patches/2012-08/msg00562.html

There is, however, one large departure.  In the above thread,
Jan pointed out problems with GCC debuginfo for -m32 builds
(filed usptream as gcc/54934).  After investigating the issue,
I am dropping the hand-tweaked assembler source file to workaround
this case.

While I would normally do something to accommodate this, in
this case, given the ubiquity of 64-bit systems today (where
the tests pass) and the apparent lack of urgency on the compiler
side (by users), I don't think the additional complexity and
maintenance costs are worth it. It will be very routinely tested
on 64-bit systems. [For example, at Red Hat, we always
test -m64 and -m32 configurations for all GDB releases.]

gdb/ChangeLog:

	From Siddhesh Poyarekar:
	* f-lang.h (f77_get_upperbound): Return LONGEST.
	(f77_get_lowerbound): Likewise.
	* f-typeprint.c (f_type_print_varspec_suffix): Expand
	UPPER_BOUND and LOWER_BOUND to LONGEST.  Use plongest to format
	print them.
	(f_type_print_base): Expand UPPER_BOUND to LONGEST.  Use
	plongest to format print it.
	* f-valprint.c (f77_get_lowerbound): Return LONGEST.
	(f77_get_upperbound): Likewise.
	(f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
	LOWER_BOUND to LONGEST.
	(f77_create_arrayprint_offset_tbl): Likewise.

gdb/testsuite/ChangeLog:

	* gdb.fortran/array-bounds.exp: New file.
	* gdb.fortran/array-bounds.f90: New file.
2019-03-29 10:35:19 -07:00
..
array-bounds.exp Allow really large fortran array bounds: fortran type/value printers 2019-03-29 10:35:19 -07:00
array-bounds.f90 Allow really large fortran array bounds: fortran type/value printers 2019-03-29 10:35:19 -07:00
array-element.exp
array-element.f
charset.exp
charset.f90
common-block.exp
common-block.f90
complex.exp
complex.f
derived-type-function.exp
derived-type-function.f90
derived-type.exp
derived-type.f90
dot-ops.exp gdb/fortran: Simplify handling of Fortran dot operations and keywords 2019-03-06 18:11:31 +00:00
exprs.exp
function-calls.exp
function-calls.f90
intrinsics.exp gdb/fortran: Add support for the ABS intrinsic function 2019-03-06 18:11:31 +00:00
intrinsics.f90 gdb/fortran: Add Fortran 'kind' intrinsic and keyword 2019-03-06 18:11:31 +00:00
library-module-lib.f90
library-module-main.f90
library-module.exp
logical.exp
logical.f90
module.exp
module.f90
multi-dim.exp
multi-dim.f90
nested-funcs.exp
nested-funcs.f90
print-formatted.exp
print-formatted.f90
printing-types.exp
printing-types.f90
ptr-indentation.exp
ptr-indentation.f90
short-circuit-argument-list.exp
short-circuit-argument-list.f90
subarray.exp
subarray.f
type-kinds.exp gdb/fortran: Handle older TYPE*SIZE typenames 2019-03-06 18:11:31 +00:00
type.f90
types.exp gdb/fortran: Cleanup code for parsing logical constants 2019-03-06 18:11:30 +00:00
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