diff options
author | Tom Tromey <tom@tromey.com> | 2020-05-08 14:21:22 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-05-08 14:21:22 -0600 |
commit | a1fd1ac9def557cbb7570cf90178a00cb26e7fef (patch) | |
tree | 2ba2b212b672aef86649fdb3ae6e3668cc49ada2 /gdb/solib.h | |
parent | 38eae084598a3531bef4b7987a8fe646ae92a988 (diff) | |
download | gdb-a1fd1ac9def557cbb7570cf90178a00cb26e7fef.zip gdb-a1fd1ac9def557cbb7570cf90178a00cb26e7fef.tar.gz gdb-a1fd1ac9def557cbb7570cf90178a00cb26e7fef.tar.bz2 |
Remove ALL_SO_LIBS and so_list_head
This patch started as an attempt to replace ALL_SO_LIBS with an
ordinary C++ iterator. However, then I tripped over the so_list_head
define again, and decided to remove it as well.
gdb/ChangeLog
2020-05-08 Tom Tromey <tom@tromey.com>
* mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
* solib-svr4.c (svr4_fetch_objfile_link_map): Update.
(enable_break): Update.
* solib-frv.c (frv_fdpic_find_global_pointer): Update.
(frv_fdpic_find_canonical_descriptor): Update.
(frv_fetch_objfile_link_map): Update.
* progspace.c (program_space::free_all_objfiles): Update.
(program_space::solibs): New method.
* progspace.h (struct program_space) <solibs>: New method.
* solist.h (master_so_list): Don't declare.
(ALL_SO_LIBS): Remove.
* solib.h (so_list_head): Remove.
(update_solib_list): Update comment.
* solib.c (master_so_list): Remove.
(solib_used, update_solib_list, solib_add)
(info_sharedlibrary_command, clear_solib)
(reload_shared_libraries_1, remove_user_added_objfile): Update.
Diffstat (limited to 'gdb/solib.h')
-rw-r--r-- | gdb/solib.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/solib.h b/gdb/solib.h index 2628ca0..801965f 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -28,9 +28,6 @@ struct program_space; #include "symfile-add-flags.h" -/* List of known shared objects */ -#define so_list_head current_program_space->so_list - /* Called when we free all symtabs, to free the shared library information as well. */ @@ -81,9 +78,9 @@ extern void set_solib_ops (struct gdbarch *gdbarch, /* Synchronize GDB's shared object list with inferior's. Extract the list of currently loaded shared objects from the - inferior, and compare it with the list of shared objects currently - in GDB's so_list_head list. Edit so_list_head to bring it in sync - with the inferior's new list. + inferior, and compare it with the list of shared objects in the + current program space's list of shared libraries. Edit + so_list_head to bring it in sync with the inferior's new list. If we notice that the inferior has unloaded some shared objects, free any symbolic info GDB had read about those shared objects. |