gdb: make gdbarch_printable_names return a vector
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 10 Aug 2021 01:47:02 +0000 (21:47 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 12 Aug 2021 19:20:26 +0000 (15:20 -0400)
commit9b1f59fc95da32963f3ba22f8587ea0c12899e05
tree27ece8ea76f043dec5c489e0055047c068144df7
parent65f82b1972cca3476b3ef6abf1d9923d34f5d4f5
gdb: make gdbarch_printable_names return a vector

I noticed that gdbarch_selftest::operator() leaked the value returned by
gdbarch_printable_names.  Make gdbarch_printable_names return an
std::vector and update callers.  That makes it easier for everyone
involved, less manual memory management.

Change-Id: Ia8fc028bdb91f787410cca34f10bf3c5a6da1498
gdb/arch-utils.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/selftest-arch.c