* solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
authorJoel Brobecker <brobecker@gnat.com>
Wed, 18 Jun 2008 21:26:07 +0000 (21:26 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 18 Jun 2008 21:26:07 +0000 (21:26 +0000)
        we're attaching to a running process.

gdb/ChangeLog
gdb/solib-osf.c

index ce7dcad..f648819 100644 (file)
@@ -1,3 +1,8 @@
+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
index 02cc4db..bf94733 100644 (file)
@@ -306,6 +306,11 @@ osf_clear_solib (void)
 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