From: Kevin Buettner Date: Fri, 12 Jul 2002 18:42:05 +0000 (+0000) Subject: From Nicholas Duffek: X-Git-Tag: binutils-2_13-branchpoint~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e42dc924cbddd34af96d5225f8235301a94745d0;p=external%2Fbinutils.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 c18185a..0ab77d2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,12 @@ 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: * 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 8fb2fec..567641f 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 ();