Clean up intermediate values in val_print_packed_array_elements
authorTom Tromey <tromey@adacore.com>
Fri, 15 Sep 2023 14:59:09 +0000 (08:59 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 2 Oct 2023 18:37:25 +0000 (12:37 -0600)
commit8f11ec2d3c57f3fb41f968e19bec3d4d58359171
treefc65c2d4fdeb6a30a64cf370bf31051d35946418
parenta97875a518ef5f334e9bd4f1f0426e0eadf387ea
Clean up intermediate values in val_print_packed_array_elements

Following on Tom de Vries' work in the other array-printers, this
patch changes val_print_packed_array_elements to also avoid allocating
too many values when printing an Ada packed array.
gdb/ada-valprint.c
gdb/testsuite/gdb.ada/huge.exp
gdb/testsuite/gdb.ada/huge/pck.adb