Previous: Fortran Intrinsics, Up: Fortran
gdb has some commands to support Fortran-specific features, such as displaying common blocks.
info common
[common-name]COMMON
block whose name is common-name. With no argument, the names of
all COMMON
blocks visible at the current program location are
printed.
set fortran repack-array-slices [on|off]
show fortran repack-array-slices
When this setting is on, then gdb will also repack array slices in some situations. When this setting is off, then gdb will create array descriptors for slices that reference the original data in place.
gdb will never repack an array slice if the data for the slice is contiguous within the original array.
gdb will always repack string slices if the data for the slice is non-contiguous within the original string as gdb does not support printing non-contiguous strings.
The default for this setting is off
.