inf_ttrace_follow_fork: detach_breakpoints called twice for child.
[binutils-gdb.git] / gdb / solib-pa64.c
index 5e1f730bc9893164527b88edf31e6a845348fbfd..00ed8a549036a1f8c3a5344a7a38a2e5797cf4b7 100644 (file)
@@ -362,8 +362,7 @@ manpage for methods to privately map shared library text."));
         to find any magic formula to find it for Solaris (appears to
         be trivial on GNU/Linux).  Therefore, we have to try an alternate
         mechanism to find the dynamic linker's base address.  */
-      tmp_bfd = bfd_openr (buf, gnutarget);
-      gdb_bfd_ref (tmp_bfd);
+      tmp_bfd = gdb_bfd_openr (buf, gnutarget);
       if (tmp_bfd == NULL)
        return;