Modified: solib-osf.c =================================================================== --- solib-osf.c 2008-05-25 02:12:58 UTC +++ solib-osf.c 2008-05-25 05:20:11 UTC @@ -306,6 +306,11 @@ static void osf_solib_create_inferior_hook (void) { + /* If we are attaching to the inferior, the shared libraries + have already been mapped, so nothing more to do. */ + if (attach_flag) + return; + /* Nothing to do for statically bound executables. */ if (symfile_objfile == NULL