aboutsummaryrefslogtreecommitdiff
path: root/opcodes/crx-dis.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-09-20 08:39:09 -0600
committerTom Tromey <tromey@adacore.com>2022-10-21 09:40:58 -0600
commit6c849804cff9e251876f3edb64d44dabeadaa711 (patch)
treeda7aa69ba5cb2c894a91ba814eb256293c95cde9 /opcodes/crx-dis.c
parent75436c534bfd7f548a13b5f926c3bd234b23b8d0 (diff)
downloadgdb-6c849804cff9e251876f3edb64d44dabeadaa711.zip
gdb-6c849804cff9e251876f3edb64d44dabeadaa711.tar.gz
gdb-6c849804cff9e251876f3edb64d44dabeadaa711.tar.bz2
Fix bug in Ada packed array handling
A user found a bug where an array of packed arrays was printed incorrectly. The bug here is that the packed array has a bit stride, but the outer array does not -- and should not. However, update_static_array_size does not distinguish between an array of packed arrays and a multi-dimensional packed array, and for the latter, only the innermost array will end up with a stride. This patch fixes the problem by adding a flag to indicate whether a given array type is a constituent of a multi-dimensional array.
Diffstat (limited to 'opcodes/crx-dis.c')
0 files changed, 0 insertions, 0 deletions