gdb: allocate so_list with new, deallocate with delete
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Oct 2023 19:17:04 +0000 (15:17 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 19 Oct 2023 14:57:51 +0000 (10:57 -0400)
commit94d5c64878a75c573c98502497cd2118720e8bbe
treee3163ca07e984d59fe7922a54185dcd2ef997e89
parent539223dec932d76596d56ef23b4724b4f4438cc4
gdb: allocate so_list with new, deallocate with delete

Initialize all fields in the class declaration, change allocations to
use "new", change deallocations to use "delete".  This is needed by a
subsequent patches that use C++ stuff in so_list.

Change-Id: I4b140d9f1ec9ff809554a056f76e3eb2b9e23222
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
gdb/solib-aix.c
gdb/solib-darwin.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/solib-rocm.c
gdb/solib-svr4.c
gdb/solib-target.c
gdb/solib.c
gdb/solist.h