diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-04-27 13:14:24 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2020-04-30 18:20:16 +0200 |
commit | ee9d1e5f76033cd8432713a76381ade76697df04 (patch) | |
tree | f5651b71bd5710d1e475e63cb96717ff2188eed2 /gdbserver | |
parent | d5cf82c0d7a7b13727a2f26425afc9051656a716 (diff) | |
download | fsf-binutils-gdb-ee9d1e5f76033cd8432713a76381ade76697df04.zip fsf-binutils-gdb-ee9d1e5f76033cd8432713a76381ade76697df04.tar.gz fsf-binutils-gdb-ee9d1e5f76033cd8432713a76381ade76697df04.tar.bz2 |
Calculate size of array of stubbed type
Sizes of stubbed types are calculated on demand in check_typedef, so the
same must also be done for arrays of stubbed types.
A stubbed type is usually a structure that has only been forward declared,
but can also happen if the structure has a virtual function that's not
inline in the class definition.
For these stubbed types, the size must be recalculated once the full
definition is available.
gdb/ChangeLog:
2020-04-30 Hannes Domani <ssbssa@yahoo.de>
PR gdb/18706
* gdbtypes.c (check_typedef): Calculate size of array of
stubbed type.
gdb/testsuite/ChangeLog:
2020-04-30 Hannes Domani <ssbssa@yahoo.de>
PR gdb/18706
* gdb.cp/stub-array-size.cc: New test.
* gdb.cp/stub-array-size.exp: New file.
* gdb.cp/stub-array-size.h: New test.
* gdb.cp/stub-array-size2.cc: New test.
Diffstat (limited to 'gdbserver')
0 files changed, 0 insertions, 0 deletions