From 211b564e41c1258a7aefa6ad412b5c637c429e33 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Sat, 19 Apr 1997 08:52:17 +0000 Subject: * 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. --- gdb/xcoffsolib.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gdb/xcoffsolib.h') diff --git a/gdb/xcoffsolib.h b/gdb/xcoffsolib.h index 2b75d22..6ef98cb 100644 --- a/gdb/xcoffsolib.h +++ b/gdb/xcoffsolib.h @@ -1,5 +1,5 @@ /* Data structures for RS/6000 shared libraries, for GDB. - Copyright 1991, 1992, 1994 Free Software Foundation, Inc. + Copyright 1991, 1992, 1994, 1997 Free Software Foundation, Inc. This file is part of GDB. @@ -32,9 +32,11 @@ struct vmap { char *member; /* ptr to member name */ CORE_ADDR tstart; /* virtual addr where member is mapped */ CORE_ADDR tend; /* virtual upper bound of member */ - CORE_ADDR tadj; /* heuristically derived adjustment */ + CORE_ADDR tvma; /* virtual addr of text section in object file */ + CORE_ADDR toffs; /* offset of text section in object file */ CORE_ADDR dstart; /* virtual address of data start */ - CORE_ADDR dend; /* vitrual address of data end */ + CORE_ADDR dend; /* virtual address of data end */ + CORE_ADDR dvma; /* virtual addr of data section in object file */ /* This is NULL for the exec-file. */ struct objfile *objfile; -- cgit v1.1