* infrun.c (wait_for_inferior): Add the symbols for any
authorPeter Schauer <Peter.Schauer@mytum.de>
Fri, 15 Aug 1997 21:10:32 +0000 (21:10 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Fri, 15 Aug 1997 21:10:32 +0000 (21:10 +0000)
commit05d52ace86cc898264acb8f23a97e22cb199ed36
treee0051a3c2ad0d9ef0f486531f446b7b58a56774a
parentbe3d1b6f9e44f02435baac46febfe810a724b6d9
* 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.
gdb/ChangeLog
gdb/rs6000-nat.c
gdb/rs6000-tdep.c
gdb/xcoffread.c
gdb/xcoffsolib.h
This page took 0.024724 seconds and 4 git commands to generate.