mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
SECT_OFF_RODATA): Define as functions of OBJFILE. Add
sect_index_text, sect_index_data, sect_index_rodata,
sect_index_bss to objfile structure.
* gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
SECT_OFF_RODATA): Remove.
* objfiles.c (allocate_objfile): Initialize
sect_index_{text,data,bss,rodata} to -1, for error detection.
* symfile.c (default_symfile_offsets): Initialize
sect_index_{text,data,bss,rodata} from bfd information.
* xcoffread.c (xcoff_symfile_offsets): Ditto.
* somread.c (som_symfile_offsets): Initialize
sect_index_{text,data,bss,rodata}.
* coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c,
hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c,
mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h,
remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c,
stabsread.c, symfile.c, xcoffread.c:
Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the
current objfile.
* xcoffread.c: Add new field objfile to find_targ_sec_arg.
This commit is contained in:
10
gdb/hpread.c
10
gdb/hpread.c
@@ -466,7 +466,7 @@ hpread_build_psymtabs (objfile, mainline)
|
||||
past_first_source_file = 1;
|
||||
|
||||
valu = hpread_get_textlow (i, hp_symnum, objfile);
|
||||
valu += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT);
|
||||
valu += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
||||
pst = hpread_start_psymtab (objfile,
|
||||
namestring, valu,
|
||||
(hp_symnum
|
||||
@@ -484,7 +484,7 @@ hpread_build_psymtabs (objfile, mainline)
|
||||
is supposed to be. */
|
||||
SET_NAMESTRING (dn_bufp, &namestring, objfile);
|
||||
valu = hpread_get_textlow (i, hp_symnum, objfile);
|
||||
valu += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT);
|
||||
valu += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
||||
if (!pst)
|
||||
{
|
||||
pst = hpread_start_psymtab (objfile,
|
||||
@@ -502,11 +502,11 @@ hpread_build_psymtabs (objfile, mainline)
|
||||
/* The beginning of a function. DNTT_TYPE_ENTRY may also denote
|
||||
a secondary entry point. */
|
||||
valu = dn_bufp->dfunc.hiaddr + ANOFFSET (objfile->section_offsets,
|
||||
SECT_OFF_TEXT);
|
||||
SECT_OFF_TEXT (objfile));
|
||||
if (valu > texthigh)
|
||||
texthigh = valu;
|
||||
valu = dn_bufp->dfunc.lowaddr +
|
||||
ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT);
|
||||
ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
||||
SET_NAMESTRING (dn_bufp, &namestring, objfile);
|
||||
add_psymbol_to_list (namestring, strlen (namestring),
|
||||
VAR_NAMESPACE, LOC_BLOCK,
|
||||
@@ -1775,7 +1775,7 @@ hpread_process_one_debug_symbol (dn_bufp, name, section_offsets, objfile,
|
||||
unsigned long desc;
|
||||
int type;
|
||||
CORE_ADDR valu;
|
||||
int offset = ANOFFSET (section_offsets, SECT_OFF_TEXT);
|
||||
int offset = ANOFFSET (section_offsets, SECT_OFF_TEXT (objfile));
|
||||
union dnttentry *dn_temp;
|
||||
dnttpointer hp_type;
|
||||
struct symbol *sym;
|
||||
|
||||
Reference in New Issue
Block a user