diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-19 18:49:50 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-19 18:49:50 +0000 |
commit | 94d4b713731d53fac28864a85e1974aa34fe7c39 (patch) | |
tree | 72b4d5f61bc77345f73d427f16078eee19cb9cae /gdb/rs6000-nat.c | |
parent | 1732fbd47ae938e02720801967b6dd9c3f489ba6 (diff) | |
download | gdb-94d4b713731d53fac28864a85e1974aa34fe7c39.zip gdb-94d4b713731d53fac28864a85e1974aa34fe7c39.tar.gz gdb-94d4b713731d53fac28864a85e1974aa34fe7c39.tar.bz2 |
* Makefile.in (TAGS): Use variables directly, rather than using
find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
and means that these filenames no longer need be unique across all
the config/* directories.
* configure.in: Put the config/*/ into TM_FILE, etc.
* m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
and trapv exceptions.
* target.h (struct section_table), objfiles.h (struct obj_section):
Change name of field sec_ptr to the_bfd_section. More mnemonic
and avoids the (sort of, for the ptx compiler) name clash with
the name of the typedef.
* exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
* utils.c: Include readline.h.
* Makefile.in (utils.o): Add dependency.
* remote.c (getpkt): Add support for run-length encoding.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 1d8b5ec..3da0c01 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -315,17 +315,17 @@ vmap_symtab (vp) struct obj_section *s; for (s = objfile->sections; s < objfile->sections_end; ++s) { - if (s->sec_ptr->target_index == textsec->target_index) + if (s->the_bfd_section->target_index == textsec->target_index) { s->addr += text_delta; s->endaddr += text_delta; } - else if (s->sec_ptr->target_index == datasec->target_index) + else if (s->the_bfd_section->target_index == datasec->target_index) { s->addr += data_delta; s->endaddr += data_delta; } - else if (s->sec_ptr->target_index == bsssec->target_index) + else if (s->the_bfd_section->target_index == bsssec->target_index) { s->addr += bss_delta; s->endaddr += bss_delta; @@ -555,12 +555,12 @@ vmap_exec () for (i=0; &exec_ops.to_sections[i] < exec_ops.to_sections_end; i++) { - if (STREQ(".text", exec_ops.to_sections[i].sec_ptr->name)) + if (STREQ(".text", exec_ops.to_sections[i].the_bfd_section->name)) { exec_ops.to_sections[i].addr += vmap->tstart; exec_ops.to_sections[i].endaddr += vmap->tstart; } - else if (STREQ(".data", exec_ops.to_sections[i].sec_ptr->name)) + else if (STREQ(".data", exec_ops.to_sections[i].the_bfd_section->name)) { exec_ops.to_sections[i].addr += vmap->dstart; exec_ops.to_sections[i].endaddr += vmap->dstart; @@ -727,15 +727,15 @@ bfd_err: and if vp->tstart is 0xd0002000, then the first byte of the text section on disk corresponds to address 0xd0002200. */ stp->bfd = vp->bfd; - stp->sec_ptr = bfd_get_section_by_name (stp->bfd, ".text"); - stp->addr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->tstart; - stp->endaddr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->tend; + stp->the_bfd_section = bfd_get_section_by_name (stp->bfd, ".text"); + stp->addr = bfd_section_vma (stp->bfd, stp->the_bfd_section) + vp->tstart; + stp->endaddr = bfd_section_vma (stp->bfd, stp->the_bfd_section) + vp->tend; stp++; stp->bfd = vp->bfd; - stp->sec_ptr = bfd_get_section_by_name (stp->bfd, ".data"); - stp->addr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->dstart; - stp->endaddr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->dend; + stp->the_bfd_section = bfd_get_section_by_name (stp->bfd, ".data"); + stp->addr = bfd_section_vma (stp->bfd, stp->the_bfd_section) + vp->dstart; + stp->endaddr = bfd_section_vma (stp->bfd, stp->the_bfd_section) + vp->dend; } vmap_symtab (vp); |