From c8048956e4dcec10f8ab2c40f8074747c36f6746 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 16 Nov 2003 10:43:07 +0000 Subject: [PATCH] * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte. --- gdb/ChangeLog | 4 ++++ gdb/i386-tdep.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfb4a6b6ab7..611839d6237 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-11-16 Mark Kettenis + + * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte. + 2003-11-16 Andrew Cagney * config/mips/linux64.mt: Delete file. diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 69db1fa820e..8b339ce0925 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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__, -- 2.30.2