X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsolib.h;h=801965fcd53c0389ae6885c306a758d71b115769;hb=196535a69c8568342e62fdf5e3f5ade04470fd6a;hp=2628ca0c2b799c3904a931fa9f06e1cf3f5653d1;hpb=b811d2c2920ddcb1adcd438da38e90912b31f45f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/solib.h b/gdb/solib.h index 2628ca0c2b..801965fcd5 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.