diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1997-04-19 08:52:17 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1997-04-19 08:52:17 +0000 |
commit | 211b564e41c1258a7aefa6ad412b5c637c429e33 (patch) | |
tree | a0c7e0a2ba89062e93ed9335cbf242f1ffdcf4dc /gdb/rs6000-tdep.c | |
parent | 27172171300d0f4c53e765cd3b1f72cc258a33ca (diff) | |
download | gdb-211b564e41c1258a7aefa6ad412b5c637c429e33.zip gdb-211b564e41c1258a7aefa6ad412b5c637c429e33.tar.gz gdb-211b564e41c1258a7aefa6ad412b5c637c429e33.tar.bz2 |
* config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
(DONT_RELOCATE_SYMFILE_OBJFILE): Removed.
* xcoffsolib.h (struct vmap): Add new members tvma, toffs and dvma,
remove tadj.
* exec.c (bfdsec_to_vmap): Initialize new vmap members, initialize
tstart and dstart with section VMA.
* rs6000-nat.c (vmap_symtab): Relocate relative to the VMA in the
object file.
(vmap_ldinfo, xcoff_relocate_core): Adjust tstart by section offset
of the text section, remove DONT_RELOCATE_SYMFILE_OBJFILE hack.
(vmap_exec): Relocate relative to the VMA in the object file,
relocate .bss section as well.
(xcoff_relocate_core): No longer adjust section addresses by VMA.
* rs6000-tdep.c (find_toc_address): Change type of tocbase
to CORE_ADDR.
* xcoffread.c (secnum_to_bfd_section): New routine to get
BFD section from CS section number.
(scan_xcoff_symtab): Make toc_offset section relative.
* symtab.c (total_number_of_methods): Avoid core dump if
baseclass type is still undefined.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index ea7be55..5b616f5 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1,5 +1,5 @@ /* Target-dependent code for GDB, the GNU debugger. - Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996 + Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of GDB. @@ -1228,7 +1228,8 @@ static CORE_ADDR find_toc_address (pc) CORE_ADDR pc; { - int ii, toc_entry, tocbase = 0; + int ii, toc_entry; + CORE_ADDR tocbase = 0; toc_entry = -1; for (ii=0; ii < loadinfotextindex; ++ii) |