aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffexec.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-03-30 23:06:29 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-03-30 23:06:29 +0000
commit359a097f9fac5066bce1f1fc78ff99d61c1d94cc (patch)
tree162c0faf0f0ce4f4a8c3209c01c2e0a1859a1d90 /gdb/xcoffexec.c
parentae35ae7f4c94c6fcbdd14a3af7e82891583122fb (diff)
downloadfsf-binutils-gdb-359a097f9fac5066bce1f1fc78ff99d61c1d94cc.zip
fsf-binutils-gdb-359a097f9fac5066bce1f1fc78ff99d61c1d94cc.tar.gz
fsf-binutils-gdb-359a097f9fac5066bce1f1fc78ff99d61c1d94cc.tar.bz2
Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
* command.c (do_setshow_command): Use %u with var_{u,z}integer. * command.{c,h}: New var_type var_integer. main.c: Use it for history_size. * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c: Lint and byte-order fixups.
Diffstat (limited to 'gdb/xcoffexec.c')
-rw-r--r--gdb/xcoffexec.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c
index e3bbba5..0fae090 100644
--- a/gdb/xcoffexec.c
+++ b/gdb/xcoffexec.c
@@ -241,8 +241,9 @@ build_section_table (some_bfd, start, end)
}
void
-sex_to_vmap(bfd *bf, sec_ptr sex, struct vmap_and_bfd *vmap_bfd)
+sex_to_vmap(bfd *bf, sec_ptr sex, PTR arg3)
{
+ struct vmap_and_bfd *vmap_bfd = (struct vmap_and_bfd *)arg3;
register struct vmap *vp, **vpp;
register struct symtab *syms;
bfd *arch = vmap_bfd->pbfd;
@@ -571,9 +572,10 @@ retry:
/* found a corresponding VMAP. remap! */
ostart = vp->tstart;
- vp->tstart = ldi->ldinfo_textorg;
+ /* We can assume pointer == CORE_ADDR, this code is native only. */
+ vp->tstart = (CORE_ADDR) ldi->ldinfo_textorg;
vp->tend = vp->tstart + ldi->ldinfo_textsize;
- vp->dstart = ldi->ldinfo_dataorg;
+ vp->dstart = (CORE_ADDR) ldi->ldinfo_dataorg;
vp->dend = vp->dstart + ldi->ldinfo_datasize;
if (vp->tadj) {
@@ -920,9 +922,10 @@ bfd_err:
offset += ldip->ldinfo_next;
- vp->tstart = ldip->ldinfo_textorg;
+ /* We can assume pointer == CORE_ADDR, this code is native only. */
+ vp->tstart = (CORE_ADDR) ldip->ldinfo_textorg;
vp->tend = vp->tstart + ldip->ldinfo_textsize;
- vp->dstart = ldip->ldinfo_dataorg;
+ vp->dstart = (CORE_ADDR) ldip->ldinfo_dataorg;
vp->dend = vp->dstart + ldip->ldinfo_datasize;
if (vp->tadj != 0) {
@@ -965,7 +968,8 @@ bfd_err:
vmap_symtab (vp);
- add_text_to_loadinfo (ldip->ldinfo_textorg, ldip->ldinfo_dataorg);
+ add_text_to_loadinfo ((CORE_ADDR)ldip->ldinfo_textorg,
+ (CORE_ADDR)ldip->ldinfo_dataorg);
} while (ldip->ldinfo_next != 0);
vmap_exec ();
do_cleanups (old);