From: Joel Brobecker Date: Wed, 18 Jun 2008 21:26:07 +0000 (+0000) Subject: * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5;p=binutils-gdb.git * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if we're attaching to a running process. --- 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