mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
When extracting an array slice we should give up if the array is not-allocated or not-associated. For Fortran, at least in gfortran compiled code, the upper and lower bounds are undefined if the array is not allocated or not associated, in which case performing checks against these bounds will result in undefined behaviour. Better then to throw an error if we try to slice such an array. This changes the error message that the user will receive in these cases (if they got an error message before). Previously they may have gotten "slice out of range" now they'll get "array not allocated" or "array not associated". gdb/ChangeLog: * valops.c (value_slice): Check for not allocated or not associated values. gdb/testsuite/ChangeLog: * gdb.fortran/vla-sizeof.exp: Update expected results. |
||
---|---|---|
.. | ||
array-bounds.exp | ||
array-bounds.f90 | ||
array-element.exp | ||
array-element.f | ||
charset.exp | ||
charset.f90 | ||
common-block.exp | ||
common-block.f90 | ||
complex.exp | ||
complex.f90 | ||
derived-type-function.exp | ||
derived-type-function.f90 | ||
derived-type.exp | ||
derived-type.f90 | ||
dot-ops.exp | ||
exprs.exp | ||
function-calls.exp | ||
function-calls.f90 | ||
intrinsics.exp | ||
intrinsics.f90 | ||
library-module-lib.f90 | ||
library-module-main.f90 | ||
library-module.exp | ||
logical.exp | ||
logical.f90 | ||
max-depth.exp | ||
max-depth.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 | ||
ptype-on-functions.exp | ||
ptype-on-functions.f90 | ||
short-circuit-argument-list.exp | ||
short-circuit-argument-list.f90 | ||
subarray.exp | ||
subarray.f | ||
type-kinds.exp | ||
type.f90 | ||
types.exp | ||
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 |