Use type allocator for set types
authorTom Tromey <tom@tromey.com>
Mon, 13 Mar 2023 19:25:41 +0000 (13:25 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 18 Mar 2023 17:12:38 +0000 (11:12 -0600)
commit526648585ca87251acdda0a271f7c4b4591231ae
treebbcc884596ed6954dcc9be6ff57591cd973530ee
parent9e76b17aa5a62d866d9446bcc397e35748596193
Use type allocator for set types

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

Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/read.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/stabsread.c