diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-07-12 18:42:05 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-07-12 18:42:05 +0000 |
commit | e42dc924cbddd34af96d5225f8235301a94745d0 (patch) | |
tree | effbaca2c81e2d2c3918f3f66057e66148c6013d /gdb/rs6000-nat.c | |
parent | 6904b546a282fd56b964440df49749067da011e4 (diff) | |
download | gdb-e42dc924cbddd34af96d5225f8235301a94745d0.zip gdb-e42dc924cbddd34af96d5225f8235301a94745d0.tar.gz gdb-e42dc924cbddd34af96d5225f8235301a94745d0.tar.bz2 |
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.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 (); |