diff options
author | Fred Fish <fnf@specifix.com> | 1996-05-02 01:32:41 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-05-02 01:32:41 +0000 |
commit | 062cb0d30dd7402562c621ce9c3b6e630445b33c (patch) | |
tree | 8c2296e006db66fdee4e35798ebf4731b64b40bd /gdb/rs6000-tdep.c | |
parent | 0a0d1bdd6e71c2fdb862e5c88e83dab65728e399 (diff) | |
download | gdb-062cb0d30dd7402562c621ce9c3b6e630445b33c.zip gdb-062cb0d30dd7402562c621ce9c3b6e630445b33c.tar.gz gdb-062cb0d30dd7402562c621ce9c3b6e630445b33c.tar.bz2 |
* Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.
* config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
* config/rs6000/rs6000.mt (TDEPFILES): ... to here
* xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
(solib_info): Call xcoff_relocate_symtab via the hook.
(sharedlibrary_command): Ditto.
* xcoffread.c: Remove all FAKING_RS6000 comments and defines.
(xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
(xcoff_init_loadinfo_hook): Define and initialize here.
(scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
(xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
* xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
* rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
* rs6000-nat.c (_initialize_core_rs6000): Add initialization
of xcoff_relocate_symtab_hook.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 614a282..f2acdf6 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1268,6 +1268,21 @@ gdb_print_insn_powerpc (memaddr, info) void _initialize_rs6000_tdep () { + /* Initialize hook in xcoffread for recording the toc offset value + of a symbol table into the ldinfo structure, for native rs6000 + config. */ + { + extern void (*xcoff_add_toc_to_loadinfo_hook) PARAMS ((unsigned long)); + xcoff_add_toc_to_loadinfo_hook = &xcoff_add_toc_to_loadinfo; + } + + /* Initialize hook in xcoffread for calling xcoff_init_loadinfo in + a native rs6000 config. */ + { + extern void (*xcoff_init_loadinfo_hook) PARAMS ((void)); + xcoff_init_loadinfo_hook = &xcoff_init_loadinfo; + } + /* FIXME, this should not be decided via ifdef. */ #ifdef GDB_TARGET_POWERPC tm_print_insn = gdb_print_insn_powerpc; |