diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-10 16:32:42 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | 30932f40120fa64147f8b5f7d9e4c462825c4e47 (patch) | |
tree | 1b9351136034ac81c56a92a0f75c94e5d252418e /gdb/solist.h | |
parent | 38dc8f35f92f9b0f7306eaa8ee26097b1e8f4d3f (diff) | |
download | gdb-30932f40120fa64147f8b5f7d9e4c462825c4e47.zip gdb-30932f40120fa64147f8b5f7d9e4c462825c4e47.tar.gz gdb-30932f40120fa64147f8b5f7d9e4c462825c4e47.tar.bz2 |
gdb: remove free_so function
Remove this function, replace it with deleting the so_list in callers.
Change-Id: Idbd0cb84674ade1d8e17af471550dbd388264f60
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/solist.h')
-rw-r--r-- | gdb/solist.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/solist.h b/gdb/solist.h index e22fd20..c9ab49a 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -169,20 +169,8 @@ struct target_so_ops void (*handle_event) (void); }; -/* Free the memory associated with a (so_list *). */ -void free_so (so_list &so); - -/* A deleter that calls free_so. */ -struct so_deleter -{ - void operator() (struct so_list *so) const - { - free_so (*so); - } -}; - /* A unique pointer to a so_list. */ -typedef std::unique_ptr<so_list, so_deleter> so_list_up; +using so_list_up = std::unique_ptr<so_list>; /* Find main executable binary file. */ extern gdb::unique_xmalloc_ptr<char> exec_file_find (const char *in_pathname, |