Use type allocator for array types
authorTom Tromey <tom@tromey.com>
Mon, 13 Mar 2023 19:20:22 +0000 (13:20 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 18 Mar 2023 17:12:38 +0000 (11:12 -0600)
commit9e76b17aa5a62d866d9446bcc397e35748596193
tree297925e36b11f64e126906d08e528e643544ea33
parente727c536c6e7334484b8dcbf369fe425bd5b892a
Use type allocator for array types

This changes the array type creation functions to accept a type
allocator, and updates all the callers.  Note that symbol readers
should generally allocate on the relevant objfile, regardless of the
placement of the index type of the array, which is what this patch
implements.

Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
gdb/ada-lang.c
gdb/coffread.c
gdb/ctfread.c
gdb/dwarf2/read.c
gdb/f-exp.y
gdb/f-lang.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/mdebugread.c
gdb/stabsread.c
gdb/valops.c