aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-osf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-osf.c')
-rw-r--r--gdb/solib-osf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib-osf.c b/gdb/solib-osf.c
index 02cc4db..bf94733 100644
--- a/gdb/solib-osf.c
+++ b/gdb/solib-osf.c
@@ -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