aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-02 16:00:55 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commite3b63a7910ac7a4ee959af20a544075becbf2671 (patch)
treee881e11f0ee8feac2acd083cb4f1eb69e3d64c63 /gdb/solib-svr4.c
parentae4bf24404a134d96bc1844fc949ca518df698f8 (diff)
downloadgdb-e3b63a7910ac7a4ee959af20a544075becbf2671.zip
gdb-e3b63a7910ac7a4ee959af20a544075becbf2671.tar.gz
gdb-e3b63a7910ac7a4ee959af20a544075becbf2671.tar.bz2
gdb: remove target_so_ops::free_so
target_so_ops::free_so is responsible for freeing the specific lm_info object. All implementations basically just call delete. Remove that method, make the destructor of lm_info virtual, and call delete directly from the free_so function. Make the sub-classes final, just because it's good practice. Change-Id: Iee1fd4861c75034a9e41a656add8ed8dfd8964ee Approved-By: Pedro Alves <pedro@palves.net> Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 6fae926..0bf8bb8 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -976,16 +976,6 @@ svr4_free_objfile_observer (struct objfile *objfile)
probes_table_remove_objfile_probes (objfile);
}
-/* Implementation for target_so_ops.free_so. */
-
-static void
-svr4_free_so (so_list &so)
-{
- lm_info_svr4 *li = (lm_info_svr4 *) so.lm_info;
-
- delete li;
-}
-
/* Implement target_so_ops.clear_so. */
static void
@@ -3465,7 +3455,6 @@ svr4_iterate_over_objfiles_in_search_order
const struct target_so_ops svr4_so_ops =
{
svr4_relocate_section_addresses,
- svr4_free_so,
svr4_clear_so,
svr4_clear_solib,
svr4_solib_create_inferior_hook,