we're attaching to a running process.
+2008-05-24 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+ we're attaching to a running process.
+
2008-12-18 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c (handle_load_dll): Give dll name and load address
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