summaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-07-12 18:42:05 +0000
committerKevin Buettner <kevinb@redhat.com>2002-07-12 18:42:05 +0000
commit78cf1aa7d6c17fde7764e8b1ec6b311ccc25bdb6 (patch)
treec77333c19280caae9ed6d0cf487fae027e04bd4d /gdb/rs6000-nat.c
parent9918db6913d1a1f01272b8f27e699845357b800b (diff)
downloadgdb-78cf1aa7d6c17fde7764e8b1ec6b311ccc25bdb6.tar.gz
From Nicholas Duffek:
* rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call target_new_objfile_hook.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 8fb2fecf91f..567641f1647 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -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 ();