Index: objfiles.c =================================================================== RCS file: /cvs/src/src/gdb/objfiles.c,v retrieving revision 1.86 diff -u -p -u -r1.86 objfiles.c --- objfiles.c 21 Jul 2009 20:54:30 -0000 1.86 +++ objfiles.c 22 Jul 2009 17:12:52 -0000 @@ -682,6 +682,7 @@ objfile_relocate (struct objfile *objfil /* Relocate breakpoints as necessary, after things are relocated. */ breakpoint_re_set (); + objfiles_updated_p = 1; /* Rebuild section map next time we need it. */ } /* Many places in gdb want to test just to see if we have any partial @@ -990,19 +991,19 @@ objfile_data (struct objfile *objfile, c } /* Set objfiles_updated_p so section map will be rebuilt next time it - is used. Called by executable_changed observer. */ + is used. Called by solib_loaded/unloaded observer. */ static void -set_objfiles_updated_on_exe_change (void) +set_objfiles_updated_on_solib_activity (struct so_list *so_list) { objfiles_updated_p = 1; /* Rebuild section map next time we need it. */ } /* Set objfiles_updated_p so section map will be rebuilt next time it - is used. Called by solib_loaded/unloaded observer. */ + is used. Called by new_objfile observer. */ static void -set_objfiles_updated_on_solib_activity (struct so_list *so_list) +set_objfiles_updated_on_new_objfile (struct objfile *objfile) { objfiles_updated_p = 1; /* Rebuild section map next time we need it. */ } @@ -1010,7 +1011,7 @@ set_objfiles_updated_on_solib_activity ( void _initialize_objfiles (void) { - observer_attach_executable_changed (set_objfiles_updated_on_exe_change); + observer_attach_new_objfile (set_objfiles_updated_on_new_objfile); observer_attach_solib_loaded (set_objfiles_updated_on_solib_activity); observer_attach_solib_unloaded (set_objfiles_updated_on_solib_activity); }