aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-06-18 21:26:07 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-06-18 21:26:07 +0000
commitea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5 (patch)
tree3c1ecc52c2b3e92c80353b8ce7e6f2401a82f360 /gdb
parent944982cfb1f8783d088191a7d292be97856a4e18 (diff)
downloadgdb-ea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5.zip
gdb-ea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5.tar.gz
gdb-ea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5.tar.bz2
* solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
we're attaching to a running process.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-osf.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ce7dcad..f648819 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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