aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-12 20:36:37 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-12 20:36:37 +0000
commit95171817bac590f01d71ac7a02b964c315c23025 (patch)
tree89039bde0937d8dea68d54ba294fabac414f3d84
parent9438d64262d8f6faebebf9f32d0229a5d60e5b6b (diff)
downloadgdb-95171817bac590f01d71ac7a02b964c315c23025.zip
gdb-95171817bac590f01d71ac7a02b964c315c23025.tar.gz
gdb-95171817bac590f01d71ac7a02b964c315c23025.tar.bz2
* xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
change which involved structure elements. It was unnecessary and was not consistently done.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/xcoffexec.c34
-rw-r--r--gdb/xcoffsolib.h2
3 files changed, 22 insertions, 18 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 82a446e..ad5a756 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
Tue Oct 12 08:59:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
+ change which involved structure elements. It was unnecessary and
+ was not consistently done.
+
* stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):
Move common block handling from dbxread.c to stabsread.c.
Use the name from the BCOMM instead of the ECOMM.
diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c
index 5c47ba1..e9981f3 100644
--- a/gdb/xcoffexec.c
+++ b/gdb/xcoffexec.c
@@ -469,7 +469,7 @@ add_vmap(ldi)
objname, bfd_errmsg(bfd_error));
/*NOTREACHED*/
}
- obj = allocate_objfile (vp->abfd, 0);
+ obj = allocate_objfile (vp->bfd, 0);
vp->objfile = obj;
#ifndef SOLIB_SYMBOLS_MANUAL
@@ -591,7 +591,7 @@ retry:
|| (memb[0] && !STREQ(memb, vp->member)))
continue;
- io = bfd_cache_lookup(vp->abfd); /* totally opaque! */
+ io = bfd_cache_lookup(vp->bfd); /* totally opaque! */
if (!io)
fatal("cannot find BFD's iostream for %s", vp->name);
@@ -695,7 +695,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
if (p->endaddr >= memend)
{
/* Entire transfer is within this section. */
- res = xfer_fn (p->abfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
+ res = xfer_fn (p->bfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
return (res != false)? len: 0;
}
else if (p->endaddr <= memaddr)
@@ -707,7 +707,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
{
/* This section overlaps the transfer. Just do half. */
len = p->endaddr - memaddr;
- res = xfer_fn (p->abfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
+ res = xfer_fn (p->bfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
return (res != false)? len: 0;
}
else if (p->addr < nextsectaddr)
@@ -739,9 +739,9 @@ print_section_info (t, abfd)
if (info_verbose)
printf_filtered (" @ %s",
local_hex_string_custom ((unsigned long) p->sec_ptr->filepos, "08l"));
- printf_filtered (" is %s", bfd_section_name (p->abfd, p->sec_ptr));
- if (p->abfd != abfd) {
- printf_filtered (" in %s", bfd_get_filename (p->abfd));
+ printf_filtered (" is %s", bfd_section_name (p->bfd, p->sec_ptr));
+ if (p->bfd != abfd) {
+ printf_filtered (" in %s", bfd_get_filename (p->bfd));
}
printf_filtered ("\n");
}
@@ -808,8 +808,8 @@ char *args;
for (vp = vmap; vp; vp = vp->nxt) {
if (!strncmp(secname
- , bfd_section_name(vp->abfd, vp->sex), seclen)
- && bfd_section_name(vp->abfd, vp->sex)[seclen] == '\0') {
+ , bfd_section_name(vp->bfd, vp->sex), seclen)
+ && bfd_section_name(vp->bfd, vp->sex)[seclen] == '\0') {
offset = secaddr - vp->tstart;
vp->tstart += offset;
vp->tend += offset;
@@ -1001,16 +1001,16 @@ bfd_err:
So for text sections, bfd_section_vma tends to be 0x200,
and if vp->tstart is 0xd0002000, then the first byte of
the text section on disk corresponds to address 0xd0002200. */
- stp->abfd = vp->abfd;
- stp->sec_ptr = bfd_get_section_by_name (stp->abfd, ".text");
- stp->addr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->tstart;
- stp->endaddr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->tend;
+ 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++;
- stp->abfd = vp->abfd;
- stp->sec_ptr = bfd_get_section_by_name (stp->abfd, ".data");
- stp->addr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->dstart;
- stp->endaddr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->dend;
+ 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;
}
vmap_symtab (vp);
diff --git a/gdb/xcoffsolib.h b/gdb/xcoffsolib.h
index 2539ac0..5be3533 100644
--- a/gdb/xcoffsolib.h
+++ b/gdb/xcoffsolib.h
@@ -28,7 +28,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
struct vmap {
struct vmap *nxt; /* ^ to next in chain */
- bfd *abfd; /* BFD for mappable object library */
+ bfd *bfd; /* BFD for mappable object library */
char *name; /* ^ to object file name */
char *member; /* ^ to member name */
CORE_ADDR tstart; /* virtual addr where member is mapped */