[PATCH 2/2] Allow really large fortran array bounds: fortran type/value printers

Keith Seitz keiths@redhat.com
Fri Mar 29 18:02:00 GMT 2019


On 3/24/19 3:47 PM, Kevin Buettner wrote:
>> 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.
>>
>> testsuite/ChangeLog:
>>
>> 	* gdb.fortran/array-bounds.exp: New file.
>> 	* gdb.fortran/array-bounds.f90: New file.
> 
> LGTM.

My thanks to Andrew and Kevin I have now pushed these two patches.

Keith



More information about the Gdb-patches mailing list