PR symtab/12406:
[deliverable/binutils-gdb.git] / gdb / solib.c
index f5917856d1509a11d28c8d308822033e1f03c827..84b90190c1347de9deaf4ed418b87d50a9db4b1b 100644 (file)
@@ -758,6 +758,9 @@ update_solib_list (int from_tty, struct target_ops *target)
             unloaded before we remove it from GDB's tables.  */
          observer_notify_solib_unloaded (gdb);
 
+         VEC_safe_push (char_ptr, current_program_space->deleted_solibs,
+                        xstrdup (gdb->so_name));
+
          *gdb_link = gdb->next;
 
          /* Unless the user loaded it explicitly, free SO's objfile.  */
@@ -793,6 +796,7 @@ update_solib_list (int from_tty, struct target_ops *target)
          volatile struct gdb_exception e;
 
          i->pspace = current_program_space;
+         VEC_safe_push (so_list_ptr, current_program_space->added_solibs, i);
 
          TRY_CATCH (e, RETURN_MASK_ERROR)
            {
This page took 0.032997 seconds and 4 git commands to generate.