diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1997-08-15 21:10:32 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1997-08-15 21:10:32 +0000 |
commit | 05d52ace86cc898264acb8f23a97e22cb199ed36 (patch) | |
tree | e0051a3c2ad0d9ef0f486531f446b7b58a56774a /gdb/xcoffsolib.h | |
parent | be3d1b6f9e44f02435baac46febfe810a724b6d9 (diff) | |
download | gdb-05d52ace86cc898264acb8f23a97e22cb199ed36.zip gdb-05d52ace86cc898264acb8f23a97e22cb199ed36.tar.gz gdb-05d52ace86cc898264acb8f23a97e22cb199ed36.tar.bz2 |
* infrun.c (wait_for_inferior): Add the symbols for any
newly loaded objects upon a TARGET_WAITKIND_LOADED event.
Rewrite code which determines the TOC address for calling functions
in the inferior under AIX.
* rs6000-nat.c (find_toc_address): New function to determine
the required TOC address from a function address.
(_initialize_core_rs6000): Set up find_toc_address_hook to point
to find_toc_address.
(xcoff_relocate_symtab, xcoff_relocate_core): Remove
add_text_to_loadinfo calls.
(exec_one_dummy_insn): Change pid and status to int to get rid of
compiler warnings.
(xcoff_relocate_symtab): Cast ldi to `int *' when passing it to
ptrace to get rid of compiler warnings.
* rs6000-tdep.c: Add definition for find_toc_address_hook.
(rs6000_fix_call_dummy): If find_toc_address_hook is non zero,
patch TOC address load code in the call dummy with the value
returned from find_toc_address_hook.
(struct loadinfo, loadinfo, loadinfolen,
loadinfotextindex, xcoff_init_loadinfo, free_loadinfo,
xcoff_add_toc_to_loadinfo, add_text_to_loadinfo, find_toc_address):
Remove.
(_initialize_rs6000_tdep): Remove initialization of
coff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
* xcoffread.c (coff_add_toc_to_loadinfo_hook,
xcoff_init_loadinfo_hook): Remove.
(struct coff_symfile_info): Add toc_offset field.
(scan_xcoff_symtab): Record toc_offset value in toc_offset field
instead of calling xcoff_add_toc_to_loadinfo_hook.
(get_toc_offset): New function to return the value of the
toc_offset field for an object file.
(xcoff_initial_scan): Remove call of xcoff_init_loadinfo_hook.
* xcoffsolib.h (add_text_to_loadinfo): Remove declaration.
* config/rs6000/tm-rs6000.h: Add declarations for
find_toc_address_hook and get_toc_offset.
Diffstat (limited to 'gdb/xcoffsolib.h')
-rw-r--r-- | gdb/xcoffsolib.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/xcoffsolib.h b/gdb/xcoffsolib.h index 6ef98cb..77d691b 100644 --- a/gdb/xcoffsolib.h +++ b/gdb/xcoffsolib.h @@ -53,9 +53,6 @@ struct vmap_and_bfd { extern struct vmap *vmap; -extern void -add_text_to_loadinfo PARAMS ((CORE_ADDR textaddr, CORE_ADDR dataaddr)); - /* Hook for symbol table relocation at runtime. */ extern void (*xcoff_relocate_symtab_hook) PARAMS ((unsigned int)); |