gdb: remove target_so_ops::free_so
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Oct 2023 20:00:55 +0000 (16:00 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 19 Oct 2023 14:57:51 +0000 (10:57 -0400)
commite3b63a7910ac7a4ee959af20a544075becbf2671
treee881e11f0ee8feac2acd083cb4f1eb69e3d64c63
parentae4bf24404a134d96bc1844fc949ca518df698f8
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>
gdb/solib-aix.c
gdb/solib-darwin.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/solib-svr4.c
gdb/solib-svr4.h
gdb/solib-target.c
gdb/solib.c
gdb/solist.h