Use gdb::array_view for value_array
authorTom Tromey <tromey@adacore.com>
Mon, 28 Aug 2023 18:40:35 +0000 (12:40 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 29 Aug 2023 19:36:55 +0000 (13:36 -0600)
commitc73556cb0e6da3c2a4484975ee51e052a9be8b36
tree2f0a60170f6424004e4ff441c7c0b798fb0a0a68
parent4fd1ba162ed6f197169d2af29f4230d7a89e2636
Use gdb::array_view for value_array

This changes value_array to accept an array view.  I also replaced an
alloca with a std::vector in array_operation::evaluate.  This function
can work on any size of array, so it seems bad to use alloca.

Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/eval.c
gdb/rust-lang.c
gdb/valops.c
gdb/value.h