diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-02 16:31:04 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | 4ac91b6bb82e82066ad10914121c75d7c99b7bbf (patch) | |
tree | bf88641c62927756676b3dcc8b14cac1ebb182ad /gdb/solist.h | |
parent | 7ad0a42e88c09b4046205316bd6352dfb31afd79 (diff) | |
download | gdb-4ac91b6bb82e82066ad10914121c75d7c99b7bbf.zip gdb-4ac91b6bb82e82066ad10914121c75d7c99b7bbf.tar.gz gdb-4ac91b6bb82e82066ad10914121c75d7c99b7bbf.tar.bz2 |
gdb: make clear_so a method of struct so_list
... just because it seems to make sense to do so.
Change-Id: Ie283c92d9b90c54e3deee96a43c6a942d8b5910b
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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/solist.h b/gdb/solist.h index 5f9090a..75e8e8a 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -38,6 +38,16 @@ using lm_info_up = std::unique_ptr<lm_info>; struct so_list { + /* Free symbol-file related contents of SO and reset for possible reloading + of SO. If we have opened a BFD for SO, close it. If we have placed SO's + sections in some target's section table, the caller is responsible for + removing them. + + This function doesn't mess with objfiles at all. If there is an + objfile associated with SO that needs to be removed, the caller is + responsible for taking care of that. */ + void clear () ; + /* The following fields of the structure come directly from the dynamic linker's tables in the inferior, and are initialized by current_sos. */ |