From: Kevin Buettner Date: Fri, 12 Jul 2002 18:42:05 +0000 (+0000) Subject: From Nicholas Duffek: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e42dc924cbddd34af96d5225f8235301a94745d0;p=binutils-gdb.git From Nicholas Duffek: * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call target_new_objfile_hook. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c18185a0939..0ab77d21446 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-07-12 Kevin Buettner + + From Nicholas Duffek: + * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call + target_new_objfile_hook. + 2002-07-12 Kevin Buettner From Nicholas Duffek: 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 ();