diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-05-14 11:27:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-05-14 11:27:03 +0000 |
commit | 42835c2ba0de387d6fa747413d4f6198d06a0f03 (patch) | |
tree | 602139b63292ce7152e0f1661c0d9b77983d54a1 /gdb/amd64-tdep.c | |
parent | 58d6f3a5e60bda04d60f1c07db1a798981c0692e (diff) | |
download | gdb-42835c2ba0de387d6fa747413d4f6198d06a0f03.zip gdb-42835c2ba0de387d6fa747413d4f6198d06a0f03.tar.gz gdb-42835c2ba0de387d6fa747413d4f6198d06a0f03.tar.bz2 |
* amd64-tdep.c (amd64_return_value): Change type of readbuf and
writebuf arguments to `gdb_byte *'. Remove now redundant casts.
* i386-tdep.c (i386_return_value): Change type of readbuf and
writebuf arguments to `gdb_byte *'.
(i386_pseudo_register_read, i386_pseudo_register_write): Change
type of last argument to `gdb_byte *'.
(i386_register_to_value, i386_value_to_register): Change type of
last argument to `gdb_byte *'. Simplify function a bit.
* i387-tdep.h (i387_value_to_register, i387_register_to_value):
Change type of last argument to `gdb_byte *'.
* i387-tdep.c: Likewise.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index d967ae9..fec7fa9 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -406,7 +406,7 @@ amd64_classify (struct type *type, enum amd64_reg_class class[2]) static enum return_value_convention amd64_return_value (struct gdbarch *gdbarch, struct type *type, struct regcache *regcache, - void *readbuf, const void *writebuf) + gdb_byte *readbuf, const gdb_byte *writebuf) { enum amd64_reg_class class[2]; int len = TYPE_LENGTH (type); @@ -503,10 +503,10 @@ amd64_return_value (struct gdbarch *gdbarch, struct type *type, if (readbuf) regcache_raw_read_part (regcache, regnum, offset, min (len, 8), - ((gdb_byte *)readbuf) + i * 8); + readbuf + i * 8); if (writebuf) regcache_raw_write_part (regcache, regnum, offset, min (len, 8), - ((const gdb_byte *)writebuf) + i * 8); + writebuf + i * 8); } return RETURN_VALUE_REGISTER_CONVENTION; |