aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-aix.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-02 15:17:04 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commit94d5c64878a75c573c98502497cd2118720e8bbe (patch)
treee3163ca07e984d59fe7922a54185dcd2ef997e89 /gdb/solib-aix.c
parent539223dec932d76596d56ef23b4724b4f4438cc4 (diff)
downloadgdb-94d5c64878a75c573c98502497cd2118720e8bbe.zip
gdb-94d5c64878a75c573c98502497cd2118720e8bbe.tar.gz
gdb-94d5c64878a75c573c98502497cd2118720e8bbe.tar.bz2
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>
Diffstat (limited to 'gdb/solib-aix.c')
-rw-r--r--gdb/solib-aix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index cfcc04d..515d9d6 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -473,7 +473,7 @@ solib_aix_current_sos (void)
to the main executable, not a shared library. */
for (ix = 1; ix < library_list->size (); ix++)
{
- struct so_list *new_solib = XCNEW (struct so_list);
+ so_list *new_solib = new so_list;
std::string so_name;
lm_info_aix &info = (*library_list)[ix];