summaryrefslogtreecommitdiff
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
parent9918db6913d1a1f01272b8f27e699845357b800b (diff)
downloadgdb-78cf1aa7d6c17fde7764e8b1ec6b311ccc25bdb6.tar.gz
From Nicholas Duffek:
* rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call target_new_objfile_hook.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/rs6000-nat.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c18185a0939..0ab77d21446 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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 ();