* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.

This commit is contained in:
Mark Kettenis 2003-11-16 10:43:07 +00:00
parent cc8a868a11
commit c8048956e4
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-11-16 Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
2003-11-16 Andrew Cagney <cagney@redhat.com>
* config/mips/linux64.mt: Delete file.

View File

@ -1157,10 +1157,9 @@ i386_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
static void
i386_extract_return_value (struct type *type, struct regcache *regcache,
void *dst)
void *valbuf)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache));
bfd_byte *valbuf = dst;
int len = TYPE_LENGTH (type);
char buf[I386_MAX_REGISTER_SIZE];
@ -1202,7 +1201,7 @@ i386_extract_return_value (struct type *type, struct regcache *regcache,
regcache_raw_read (regcache, LOW_RETURN_REGNUM, buf);
memcpy (valbuf, buf, low_size);
regcache_raw_read (regcache, HIGH_RETURN_REGNUM, buf);
memcpy (valbuf + low_size, buf, len - low_size);
memcpy ((char *) valbuf + low_size, buf, len - low_size);
}
else
internal_error (__FILE__, __LINE__,