From a1fd1ac9def557cbb7570cf90178a00cb26e7fef Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 8 May 2020 14:21:22 -0600 Subject: 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 * 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) : 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. --- gdb/solist.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gdb/solist.h') diff --git a/gdb/solist.h b/gdb/solist.h index 068aeba..0360d34 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -24,11 +24,6 @@ #include "symtab.h" #include "gdb_bfd.h" -#define ALL_SO_LIBS(so) \ - for (so = so_list_head; \ - so != NULL; \ - so = so->next) - /* Base class for target-specific link map information. */ struct lm_info_base @@ -183,9 +178,6 @@ struct so_deleter /* A unique pointer to a so_list. */ typedef std::unique_ptr so_list_up; -/* Return address of first so_list entry in master shared object list. */ -struct so_list *master_so_list (void); - /* Find main executable binary file. */ extern gdb::unique_xmalloc_ptr exec_file_find (const char *in_pathname, int *fd); -- cgit v1.1