diff options
author | Tom Tromey <tromey@adacore.com> | 2020-11-04 08:49:16 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-11-04 08:49:18 -0700 |
commit | b72795a8f573c36aaeedd1a64f58ad52b4c72439 (patch) | |
tree | 54804ce534e446f4d09d9afb74ea26e2a7043214 /gdb/dwarf2/read.c | |
parent | 24aa1b028236fff1b1cf04e8cadcc2e7b4c72aab (diff) | |
download | gdb-b72795a8f573c36aaeedd1a64f58ad52b4c72439.zip gdb-b72795a8f573c36aaeedd1a64f58ad52b4c72439.tar.gz gdb-b72795a8f573c36aaeedd1a64f58ad52b4c72439.tar.bz2 |
Fix bit strides for -fgnat-encodings=minimal
With -fgnat-encodings=minimal, the enum_idx_packed.exp test will fail.
In this test case, we have an array (with dynamic length) of arrays,
and the inner array has a bit stride. In this situation, the outer
array's bit stride must be updated to account for the entire bit
length of the inner array.
Here, again, some tests must be kfail'd when an older version of GNAT
is in use.
gdb/ChangeLog
2020-11-04 Tom Tromey <tromey@adacore.com>
* gdbtypes.c (update_static_array_size): Handle bit stride.
gdb/testsuite/ChangeLog
2020-11-04 Tom Tromey <tromey@adacore.com>
* gdb.ada/enum_idx_packed.exp: Test two forms of -fgnat-encodings.
Diffstat (limited to 'gdb/dwarf2/read.c')
0 files changed, 0 insertions, 0 deletions