X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fprogspace.c;h=7080bf8ee2707f0aacd3a7db6d620703e18b6ab4;hb=8677059126a84cb9f71371beb8688138a41014fc;hp=ebbc784dcfbb5fb8f57aa80f1882d98ff063db82;hpb=6bd434d6caa4c08a5ea87fe327d802c1e00a5c5e;p=binutils-gdb.git diff --git a/gdb/progspace.c b/gdb/progspace.c index ebbc784dcfb..7080bf8ee27 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -215,14 +215,6 @@ program_space::remove_objfile (struct objfile *objfile) /* See progspace.h. */ -next_adapter -program_space::solibs () const -{ - return next_adapter (this->so_list); -} - -/* See progspace.h. */ - void program_space::exec_close () { @@ -412,7 +404,6 @@ void update_address_spaces (void) { int shared_aspace = gdbarch_has_shared_address_space (target_gdbarch ()); - struct inferior *inf; init_address_spaces (); @@ -431,7 +422,7 @@ update_address_spaces (void) pspace->aspace = new_address_space (); } - for (inf = inferior_list; inf; inf = inf->next) + for (inferior *inf : all_inferiors ()) if (gdbarch_has_global_solist (target_gdbarch ())) inf->aspace = maybe_new_address_space (); else