]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix size recalculation of fortran arrays
authorHannes Domani <ssbssa@yahoo.de>
Fri, 1 May 2020 12:01:02 +0000 (14:01 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Fri, 1 May 2020 13:32:17 +0000 (15:32 +0200)
commit8dbb13755bd15eea33df1dec1c6171f745d9f501
tree55374ea4b75fb81efac2bb4a05bac36ff1c27549
parent53ae0aa9c65bc41b6f67f52a657b9f5339a331be
Fix size recalculation of fortran arrays

My recent change regarding size calculation of arrays of stubbed types
didn't take array strides and associated/allocated type properties into
account, which basically broke fortran arrays.

Fixed by refactoring the array size calculation of
create_array_type_with_stride into a new function, and also use it for
the stubbed array size recalculation.

gdb/ChangeLog:

2020-05-01  Hannes Domani  <ssbssa@yahoo.de>

* gdbtypes.c (update_static_array_size): New function.
(create_array_type_with_stride): Use update_static_array_size.
(check_typedef): Likewise.
gdb/gdbtypes.c