Special Fortran Commands (Debugging with ROCGDB)

Previous: Fortran Defaults, Up: Fortran [Contents][Index]

#### 15.4.6.3 Special Fortran Commands

ROCGDB has some commands to support Fortran-specific features, such as displaying common blocks.

`info common [common-name]`

  This command prints the values contained in the Fortran `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 taking a slice from an array, a Fortran compiler can choose to either produce an array descriptor that describes the slice in place, or it may repack the slice, copying the elements of the slice into a new region of memory.

  When this setting is on, then ROCGDB will also repack array slices in some situations. When this setting is off, then ROCGDB will create array descriptors for slices that reference the original data in place.

  ROCGDB will never repack an array slice if the data for the slice is contiguous within the original array.

  ROCGDB will always repack string slices if the data for the slice is non-contiguous within the original string as ROCGDB does not support printing non-contiguous strings.

  The default for this setting is `off`.