aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-11-16 10:43:07 +0000
committerMark Kettenis <kettenis@gnu.org>2003-11-16 10:43:07 +0000
commitc8048956e4dcec10f8ab2c40f8074747c36f6746 (patch)
tree9c8062b7079038cf9e9e9790e5db9bbfb656e81e
parentcc8a868a11f0078d8813981ddc36b3358e83b789 (diff)
downloadgdb-c8048956e4dcec10f8ab2c40f8074747c36f6746.zip
gdb-c8048956e4dcec10f8ab2c40f8074747c36f6746.tar.gz
gdb-c8048956e4dcec10f8ab2c40f8074747c36f6746.tar.bz2
* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i386-tdep.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cfb4a6b..611839d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 69db1fa..8b339ce 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__,