[PATCH] gdb: make gdbarch_printable_names return a vector

Tom Tromey tom@tromey.com
Thu Aug 12 19:01:04 GMT 2021


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

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

Looks reasonable to me.

Tom


More information about the Gdb-patches mailing list