diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-11-16 10:43:07 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-11-16 10:43:07 +0000 |
commit | c8048956e4dcec10f8ab2c40f8074747c36f6746 (patch) | |
tree | 9c8062b7079038cf9e9e9790e5db9bbfb656e81e /gdb/i386-tdep.c | |
parent | cc8a868a11f0078d8813981ddc36b3358e83b789 (diff) | |
download | gdb-c8048956e4dcec10f8ab2c40f8074747c36f6746.zip gdb-c8048956e4dcec10f8ab2c40f8074747c36f6746.tar.gz gdb-c8048956e4dcec10f8ab2c40f8074747c36f6746.tar.bz2 |
* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
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__, |