From ea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 18 Jun 2008 21:26:07 +0000 Subject: [PATCH] * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if we're attaching to a running process. --- gdb/ChangeLog | 5 +++++ gdb/solib-osf.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ce7dcadea75..f6488195b8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-24 Joel Brobecker + + * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if + we're attaching to a running process. + 2008-12-18 Pierre Muller * win32-nat.c (handle_load_dll): Give dll name and load address diff --git a/gdb/solib-osf.c b/gdb/solib-osf.c index 02cc4db4c05..bf947332c9f 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 -- 2.30.2