From Nicholas Duffek:
authorKevin Buettner <kevinb@redhat.com>
Fri, 12 Jul 2002 18:42:05 +0000 (18:42 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 12 Jul 2002 18:42:05 +0000 (18:42 +0000)
* rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
target_new_objfile_hook.

gdb/ChangeLog
gdb/rs6000-nat.c

index c18185a..0ab77d2 100644 (file)
@@ -1,6 +1,12 @@
 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
 
        From Nicholas Duffek:
+       * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
+       target_new_objfile_hook.
+
+2002-07-12  Kevin Buettner  <kevinb@redhat.com>
+
+       From Nicholas Duffek:
        * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
        csect.
 
index 8fb2fec..567641f 100644 (file)
@@ -832,6 +832,11 @@ vmap_ldinfo (LdInfo *ldi)
          /* relocate symbol table(s). */
          vmap_symtab (vp);
 
+         /* Announce new object files.  Doing this after symbol relocation
+            makes aix-thread.c's job easier. */
+         if (target_new_objfile_hook && vp->objfile)
+           target_new_objfile_hook (vp->objfile);
+
          /* There may be more, so we don't break out of the loop.  */
        }
 
@@ -1109,6 +1114,9 @@ xcoff_relocate_core (struct target_ops *target)
        }
 
       vmap_symtab (vp);
+
+      if (target_new_objfile_hook && vp != vmap && vp->objfile)
+       target_new_objfile_hook (vp->objfile);
     }
   while (LDI_NEXT (ldi, arch64) != 0);
   vmap_exec ();