aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.h
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.h
parentae4bf24404a134d96bc1844fc949ca518df698f8 (diff)
downloadfsf-binutils-gdb-e3b63a7910ac7a4ee959af20a544075becbf2671.zip
fsf-binutils-gdb-e3b63a7910ac7a4ee959af20a544075becbf2671.tar.gz
fsf-binutils-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.h')
-rw-r--r--gdb/solib-svr4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-svr4.h b/gdb/solib-svr4.h
index 050c702..1aff3b5 100644
--- a/gdb/solib-svr4.h
+++ b/gdb/solib-svr4.h
@@ -29,7 +29,7 @@ extern const struct target_so_ops svr4_so_ops;
/* Link map info to include in an allocated so_list entry. */
-struct lm_info_svr4 : public lm_info
+struct lm_info_svr4 final : public lm_info
{
/* Amount by which addresses in the binary should be relocated to
match the inferior. The direct inferior value is L_ADDR_INFERIOR.