On Wed, Jul 22, 2009 at 11:34 AM, Pedro Alves wrote: > A new function objfiles.c:objfiles_changed that is called > from reread_symbols, would still be better, that abusing that > observer, IMHO. I agree. Try #4 tested and attached. Thanks, -- Paul Pluzhnikov 2009-07-22 Paul Pluzhnikov * objfiles.h (objfiles_changed): New prototype. * objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p. (allocate_objfile, free_objfile): Must rebuild section map. (objfile_relocate): Likewise. (update_section_map, find_pc_section): Adjust. (set_objfiles_updated_on_exe_change): Remove. (set_objfiles_updated_on_solib_activity): Remove. (_initialize_objfiles): Remove. (objfiles_changed): New function. * symfile.c (reread_symbols): Call objfiles_changed.