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:19 -0700 |
commit | 7ff5b9370f4f7c0c75d734aa19b8f020429d4bb5 (patch) | |
tree | 477e1f023488cb143b18423a4aa49e6e5d5e5a7c /gdb/macroexp.c | |
parent | 10f6a3add6b4bdd1c83494cad9e9497271fe0922 (diff) | |
download | binutils-7ff5b9370f4f7c0c75d734aa19b8f020429d4bb5.zip binutils-7ff5b9370f4f7c0c75d734aa19b8f020429d4bb5.tar.gz binutils-7ff5b9370f4f7c0c75d734aa19b8f020429d4bb5.tar.bz2 |
Use bit stride when taking slice of array
Testing with -fgnat-encodings=minimal showed that the Ada code failed
to use the bit stride of an array when taking a slice. This patch
fixes the oversight.
gdb/ChangeLog
2020-11-04 Tom Tromey <tromey@adacore.com>
* ada-lang.c (ada_value_slice_from_ptr): Use bit size.
gdb/testsuite/ChangeLog
2020-11-04 Tom Tromey <tromey@adacore.com>
* gdb.ada/array_of_variant.exp: New file.
* gdb.ada/array_of_variant/p.adb: New file.
* gdb.ada/array_of_variant/pck.ads: New file.
* gdb.ada/array_of_variant/pck.adb: New file.
Diffstat (limited to 'gdb/macroexp.c')
0 files changed, 0 insertions, 0 deletions